Laravel
What options would you have to add to php artisan db:seed to only run seeder for a particular class?
--class={Name of Class} eg: php artisan db:seed --class=UsersTableSeeder
bigInteger
BIGINT, Integer data from −2^63 (−9,223,372,036,854,775,808) to 2^63−1 (9,223,372,036,854,775,807).
What class do you have to update in order to run the database seeders in Laravel 5?
DatabaseSeeder class (extends Seeder)
INTEGER (MySQL) $table->integer('votes');
INT 4 bytes -2147483648 to +2147483647
$table->timestamp('published_at')->nullable(); What is the nullable field for?
Indicating that it is okay for the field to be null.
What does the @yield Blade directive do?
Section which you implement in an "extended" blade where you use @section tags to implement. Think of them as an interface.
$table->text('description'); What mysql data type is used by this Schema builder string?
TEXT, supports size of 2^16 - 1 = 65535, useful for descriptions and short descriptive text.
$table->timestamp('added_on'); What mysql data type is used by this Schema builder string?
TIMESTAMP
bigIncrements
an incrementing ID using a "big integer" equivalent
What columns are added in this Schema builder string? $table->timestamps();
created_at and updated_at
What is the artisan command to run the seeder in a Laravel project?
php artisan db:seed
What php artisan command is used to drop followed by a migration?
php artisan migrate:refresh
$table->string('title'); What mysql data type is used here?
varchar