Laravel Class not found

Laravel Class not found

i tried lots of things… and after 2 hours here is the solutions

  1. php artisan config:cache

  2. composer dump-autoload

  3. php artisan cache:clear

  4. php artisan view:clear

And be sure to declare the class in app.cfg

Related Articles

TokenMismatchException in VerifyCsrfToken.php line 67:

I have a form and when i click the submit button I get the error: TokenMismatchException in VerifyCsrfToken.php line 67:

FatalErrorException in Str.php line 395: Call to undefined function Illuminate\Support\ctype_lower()

the fix is to enable the extension ctype from php.ini before after   and restart the apache serve.

This package requires php <=7.0.27 but your PHP version (7.0.30) does not satisfy that requirement.

At some projects when I tried: php composer install it gives me the following error: – This package requires php