Friend,
the migrations are to raise the DB, if you want to create records you must use the seeder de laravel,
try an example:
php artisan make:seeder UsersTableSeeder;
within the UsersTableSeeder file that was created in the database / seeds /
directory
<?php
use Illuminate\Database\Seeder;
class UsersTableSeeder extends Seeder
{
public function run()
{
for($i = 0; $i < 10; $i++){
\DB::table('users')->insert(array(
'name' => "algunNombre",
'email' => "algunEmail",
'password' => \Hash::make('secreto'),
));
}
}
}
then you register the seeder in / database / seeds / DatabaseSeeder
public function run()
{
$this->call('UsersTableSeeder');
}
then you execute the following command in the terminal
composer dump-autoload
then
php artisan db:seed
here you can review the documentation link