Question By
Unsolved

Whoops, looks like something went wrong

augustine-forson

May 11th, 2017 04:08 PM

<p>I have update the php version to 7.0 and add this code to application/app/Providers/AppServiceProvider.php </p> <p>use Illuminate\Support\Facades\Schema;</p> <p>public function boot() { Schema::defaultStringLength(191); }</p> <p>as i found them in the forums but still i got Whoops, looks like something went wrong. what should i do next to solve this issues? </p> <p>thanks</p>
augustine-forson

May 11th, 2017 06:53 PM

now am trying to reinstall again this is what i got. SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 1000 bytes (SQL: alter table categories add unique categories_slug_unique(slug))

augustine-forson

May 21st, 2017 03:34 PM

thanks but i am not in web developer but i just know basic so i don't know what to do next, i have sent email almost 14 days until now no help from devdojo. can you please copy and past the code here for me to follow.

augustine-forson

May 21st, 2017 03:59 PM

this is how i put the code.....

<?php namespace App\Providers; use Illuminate\Support\ServiceProvider; use Laravel\Dusk\DuskServiceProvider; class AppServiceProvider extends ServiceProvider { /** * Bootstrap any application services. * * @return void */ public function boot() { // } /** * Register any application services. * * @return void */ public function register() { if ($this->app->environment('local', 'testing')) { $this->app->register(DuskServiceProvider::class); } use Illuminate\Support\Facades\Schema; public function boot() { Schema::defaultStringLength(191); } } } please just let me know if is alright. thanks