Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function up()
- {
- Schema::create('flights', function (Blueprint $table) {
- $table->increments('id');
- $table->string('name');
- $table->string('airline');
- $table->timestamps();
- });
- }
- php artisan make:seeder UsersTableSeeder
- $factory->define(AppUser::class, function ($faker) {
- return [
- 'name' => $faker->name,
- 'email' => $faker->email,
- 'password' => str_random(10),
- 'remember_token' => str_random(10),
- ];
- });
Add Comment
Please, Sign In to add comment