#Follow the steps to run your own laravel project.
- sudo apt-get install php5
- sudo apt-get install php5-json
-
Run this in your terminal to get the latest Composer version:
- curl -sS https://getcomposer.org/installer | php Or if you don't have curl:
- php -r "readfile('https://getcomposer.org/installer');" | php
Shift the composer.phar file to your local directory and also export the composer file from the vendor.
- mv composer.phar /usr/local/bin
- echo 'export PATH="$PATH:~/.composer/vendor/bin"' >> ~/.bashrc
- sudo apt-get install php5-mcrypt
- laravel new "projectname" This will create a folder in your current repository.
#To run this code on your computer
- change /config/database.php file and update necessary database,username and\ password under"mysql"
- Call the migrations
- php artisan migrate
- cd to your project folder and run php artisan serve and open your browser(localhost::8000)