Skip to content

Instantly share code, notes, and snippets.

@DanzelWTF
Created February 15, 2016 22:18
Show Gist options
  • Save DanzelWTF/742ec44604e48de113a4 to your computer and use it in GitHub Desktop.
Save DanzelWTF/742ec44604e48de113a4 to your computer and use it in GitHub Desktop.
Laravel Cheat Sheet

Artisan Commands

Serve the application on the PHP development server

$ php artisan serve [--port=8000]

Create a session table

$ php artisan session:table
$ composer dump-autoload
$ php artisan migrate

Create a new controller

$ php artisan make:controller [--resource] --resource: The new controller will contain methods for the available resource operations. (e.g. index, show, edit, store, delte...)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment