Home > database >  Method Illuminate\Support\Str::transliterate does not exist
Method Illuminate\Support\Str::transliterate does not exist

Time:04-20

I am using:

Laravel: 9.x-dev

PHP: 8.1.5

laravel/ui: v3.4.5

After updating my application from Laravel 8 to Laravel 9 I get this error when trying to authenticate.

It references line 92 in vendor\laravel\ui\auth-backend\ThrottlesLogins.php

   protected function throttleKey(Request $request)

{

    return Str::transliterate(Str::lower($request->input($this->username())).'|'.$request->ip());

}

CodePudding user response:

I resolved this error by changing Laravel off the dev release in composer. In my case going from 9.x-dev to 9.1.5

CodePudding user response:

Solution

Try to run this command :

composer update

Make sure you imported this class ex:

use Illuminate\Support\Str;

i hope it was useful

  • Related