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

Used terminal commands laravel

Create a new project in laravel: #laravel new your-project-name Another way to create a new project: #composer create-project laravel/laravel your-project-name

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.