Migrate the database along with seed code example Example: laravel seed migrate php artisan migrate:refresh --seed