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

Create a controller with populated with all the functions a

#php artisan make:controller FlyersController –resource the result is that you will have a controller with all the functions created: <?php

SQLSTATE[HY000] [1045] Access denied for user ‘homestead’@’localhost’ (using password: YES)

When I run the command “php artisan migrate” I get the following error message: [PDOException]  SQLSTATE[HY000] [1045] Access denied for

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.