Skip to content

Instantly share code, notes, and snippets.

@rnaffer
Last active March 3, 2016 15:31
Show Gist options
  • Select an option

  • Save rnaffer/b7913eef6a272c664c4f to your computer and use it in GitHub Desktop.

Select an option

Save rnaffer/b7913eef6a272c664c4f to your computer and use it in GitHub Desktop.
Usefull console commands for Laravel (Windows)
/* Installation */
composer global require "laravel/installer"
/* New Project Using Laravel */
laravel new blog
/* New Project Using Composer */
composer create-project laravel/laravel nombre --prefer-dist
/* Rename Project */
php artisan app:name Horsefly
/* Migrate Database */
php artisan migrate
/* Migration Variants */
php artisan migrate:rollback, migrate:refresh, migrate:reset
/* Make a table */
php artisan make:migration create_tablename_table --create=tablename
/* Make a Model */
php artisan make:model modelname
/* Insertar en tabla usando tinker */
DB::table('departamentos')->insert(['nombre' => 'Antioquia', 'created_at' => new DateTime, 'updated_at' => new DateTime]);
/* Create a Controller */
php artisan make:controller TaskController --plain
/* When failed to load a migration file */
composer dump-autoload
/* */
/* */
/* */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment