Horje
laravel run migration Code Example
laravel run migration
RUN A MIGRATION IN LARAVEL:

php artisan migrate
laravel migration rollback
To rollback one step:

php artisan migrate:rollback

To rollback multiple steps:

php artisan migrate:rollback --step=[x]
  
To drop all tables and reload all migrations:

php artisan migrate:fresh
laravel create migration
// use the make:migration Artisan command to generate a database migration
php artisan make:migration create_flights_table

// use --create to indicate whether the migration will be creating a new table
php artisan make:migration create_flights_table --create=flights

// use --table to indicate the table name
php artisan make:migration add_destination_to_flights_table --table=flights
Source: laravel.com
php artisan see last migration
php artisan migrate:status
laravel create migration
php artisan make:migration add_votes_to_users_table --table=users

php artisan make:migration create_users_table --create=users
Source: laravel.com
fresh migrqte laravel
$ php artisan migrate:fresh

Dropped all tables successfully.
Migration table created successfully.
Migrating: 2014_10_12_000000_create_users_table
Migrated:  2014_10_12_000000_create_users_table
Migrating: 2014_10_12_100000_create_password_resets_table
Migrated:  2014_10_12_100000_create_password_resets_table




Php

Related
php what type of variable is it Code Example php what type of variable is it Code Example
array con php Code Example array con php Code Example
laravel check if laravel query is empty Code Example laravel check if laravel query is empty Code Example
laravel run php server by ipv4 Code Example laravel run php server by ipv4 Code Example
smarty assign var Code Example smarty assign var Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
11