Monday, 8 September 2014

First steps for already exisitngs projects in Laravel

I often have problems to remember what to do when I get to work on existing Laravel project.

Frist error I get is:

"../vendor/autoload.php): failed to open stream: No such file or directory in .."

To fix this, just run in Terminal
composer install
Then setup .htaccess.

Next thing, in config folder to setup local configuration (database and other settings), I usually do like here:

After setting up the conf next id database. Create database and then run
php artisan migrate
to create tables in your database.


php artisan db:seed

to seed data.

And now should be all running.

To set up mail work on localhost and not to send real mails\config\local\mail.php

return array(
 'driver' => 'mail',);