2

I am trying to update the Laravel5.5 project to 6. What I tried is first describing the package update

"php": "^7.2",
"ext-SimpleXML": "^7.3",
"barryvdh/laravel-ide-helper": "^2.6",
"doctrine/dbal": "^2.10",
"fideloper/proxy": "^4.0",
"jeroennoten/laravel-adminlte": "^2.0",
"laravel/framework": "^6.0",
"laravel/tinker": "~1.0",
"laravelcollective/html": "^6.0",
"maatwebsite/excel": "^3.1",
"laravel/ui": "^1.1",
"phpoffice/phpspreadsheet": "^1.9",
"phpoffice/phpexcel": "dev-master"

next

composer update

I get error

Call to undefined function str_slug()

So install this library

composer require laravel/helpers

Then this error came out

JeroenNoten \ LaravelAdminLte \ ServiceProvider :: class, not found

Reinstalling adminLTE doesn't help, commenting out and reinstalling doesn't work, I'm stuck and want help

I need help

su3158
  • 555
  • 1
  • 6
  • 25

2 Answers2

0

Open the composer.json file of your project (The configuration file of Composer) and change the Laravel framework . (Notice the caret, Laravel 6 makes use of semantic versioning scheme).

you are recommended to first upgrade your project to 5.8 then again upgrade to v6.

Next, save your composer.json file and run the following command:

$ composer update

Before you upgrade your project to v6, make sure your upgrade your PHP version from 7.1 to at least 7.2.

starting from December 2019, PHP 7.1 will not be maintained.

Gabrielle-M
  • 1,037
  • 4
  • 17
  • 39
0

Click here to resolve this error: Call to undefined function str_slug()


Remove space in config/app.php file:

'providers' => [

    ....

    JeroenNoten\LaravelAdminLte\ServiceProvider::class,

],

Just run this command, It can automatically add all configurations to your project:

composer require jeroennoten/laravel-adminlte

More info about jeroennoten/laravel-adminlte

Udhav Sarvaiya
  • 9,380
  • 13
  • 53
  • 64
  • According to you mention ```composer require jeroennoten/laravel-adminlte``` . It upgrade to latest version. I don't want latest version and I want ```"jeroennoten/laravel-adminlte": "^2.0"``` How to do it? I got also same error ```JeroenNoten \ LaravelAdminLte \ ServiceProvider :: class, not found``` – Senthurkumaran Apr 22 '20 at 10:25