1

Im following Laravel Breeze Guide from Laravel's oficial page and after installing Breeze package I don't see any new migration

these are the lines i executed

curl -s https://laravel.build/prueba | bash
 
cd example-app
 
php artisan migrate

at this point I have created a new Laravel application and php artisan migrate create tables correctly in my DB

composer require laravel/breeze --dev

php artisan breeze:install
 
npm install
npm run dev
php artisan migrate

at this point I have all the views for the authentication generated thanks to Breeze. but when php artisan migrate is executed the response I get is

enter image description here

What am I doing wrong?

Davhoj
  • 71
  • 3

4 Answers4

0

Check migration exists in the migration folder if yes then try check your database connection php artisan migrate:refresh

Super Kai - Kazuya Ito
  • 22,221
  • 10
  • 124
  • 129
0

Try to move your folder to a directory which doesn't have any weird symbols in the name. Like: [Code] <- php doesn't always like this :)

0

i had this problem too, finally i created the table manually

    public function up()
{
    Schema::create('users', function (Blueprint $table) {
        $table->id();
        $table->timestamps();   
        $table->string('name', 250);
        $table->string('email', 250);
        $table->string('password', 250);
    });
}
0

That simply means you run your migrations before you even installed Laravel/Breeze.

The documentation is a bit misleading because it says we should run php artisan migrate following the installation of Breeze because it assumes we just started a fresh Laravel project to which we added Breeze before running the migrations (and that is actually the recommended way to add Laravel/Breeze because, for instance, it overrides all the routes you may have declared in routes/api.php)

Otherwise, Laravel/breeze does not come with any new migration to run. You can actually check that on its official source code.

Billal Begueradj
  • 20,717
  • 43
  • 112
  • 130