Last active
October 8, 2018 23:10
-
-
Save Eyakub/a4857a85713942f5871d424a6f987e19 to your computer and use it in GitHub Desktop.
This is for personal use, I mean I just follow this for myself to work easily :v I'm comfortable here.
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
php artisan make:controller WelcomeController --resource | |
php artisan --version | |
//form control | |
composer require "laravelcollective/html":"^5.4.0" | |
//create migration table | |
php artisan make:migration create_tbl_table --create=tbl_admin | |
//to add table to database run a command line to execute | |
php artisan migrate | |
//rollback the last migration | |
php artisan migrate:rollback --setp 1 | |
//create seeder | |
php artisan make:seeder UsersTableSeeder | |
//inserting data using seeder | |
//run all seeder | |
php artisan db:seed | |
//run seeder for specific | |
php artisan db:seed --class=AdminTableSeeder | |
//work into another pc with laravel | |
1.composer install | |
2.php artisan key:generate | |
3.php artisan cache:clear | |
4.php artisan migrate | |
Change configuration according your need and create Database | |
$ composer install | |
$ php artisan migrate | |
$ php artisan db:seed | |
$ php artisan serve | |
//to use factory you have to create model first | |
php artisan make | |
>> php artisan make:model modelName -m //m for migrate | |
>> php artisan migrate | |
>> php artisan make:seeder SeederClassName | |
//if we delete database table again for mistakes | |
composer dump-autoload | |
php artisan config:cache | |
php artisan migrate:fresh | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment