Skip to main content

Posts

Showing posts from May, 2016

How Easy is Laravel's Workflow?

I've decided to write about application workflow with Laravel 5.2.  One of the handiest features of Laravel is the command line "make" command.  This allows Laravel to automatically create assets for you, place them in the appropriate folder and add classes to the Composer routing table.  So, for example, if you want to create a "widgets" model for your project, we would need to create the migration file (which creates the table) and a model file.  So we will issue two commands in our console window: php artisan make:migration Widgets php artisan make:model Widget This will create the following files: /database/migrations/<date + timestamp>Widgets.php /app/Widget.php Note the respective use plural/singular.  In general, we'd be creating a "widgets" table, so the migration name would be similar.  I've found the use of camel case to be the clearest here, though the documentation specifies snake case, which for me, makes it har...