-1

[enter image description here][1]After creating a new project, I migrate and it gives this error

This project is completely raw and no changes have been made enter image description here

After creating a new project, I migrate and it gives this error

This project is completely raw and no changes have been made

steven7mwesigwa
  • 5,701
  • 3
  • 20
  • 34
matima
  • 9
  • 2
  • Does this answer your question? [Laravel Migration Error: Syntax error or access violation: 1071 Specified key was too long; max key length is 767 bytes](https://stackoverflow.com/questions/42244541/laravel-migration-error-syntax-error-or-access-violation-1071-specified-key-wa) – steven7mwesigwa Jan 16 '23 at 19:26
  • 1
    Please read: [Why are images of text, code and mathematical expressions discouraged?](https://meta.stackexchange.com/q/320052/266284) and [Why should I not upload images of code/data/errors when asking a question?](https://meta.stackoverflow.com/q/285551/3404097) – steven7mwesigwa Jan 16 '23 at 19:27

1 Answers1

0

Quick fix is your /app/Providers/AppServiceProvider.php must contain

use Illuminate\Support\Facades\Schema;
    
    /**
     * Bootstrap any application services.
     *
     * @return void
     */
    public function boot()
    {
        Schema::defaultStringLength(191);
    }

If not work then try change database charset also