Last active
March 3, 2016 15:31
-
-
Save rnaffer/b7913eef6a272c664c4f to your computer and use it in GitHub Desktop.
Usefull console commands for Laravel (Windows)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* 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