Skip to content

Instantly share code, notes, and snippets.

@dobbsryan
Last active August 14, 2016 20:01
Show Gist options
  • Save dobbsryan/7ffdbc80b3fb0b7370e2dc2a6d6c1fa0 to your computer and use it in GitHub Desktop.
Save dobbsryan/7ffdbc80b3fb0b7370e2dc2a6d6c1fa0 to your computer and use it in GitHub Desktop.

Install project

// current version
laravel new project-name

// or dev branch
composer create-project laravel/laravel project-name dev-develop

From within new project directory

touch database/database.sqlite

From within .env file

DB_CONNECTION=sqlite

And then should remove all other database related rows of this section

To migrate default tables, can then run

php artisan migrate

Can then access and create users with tinker

php artisan tinker

From within tinker, for example

factory('App\User', 2)->create();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment