Class '\App\User' not found in Laravel 5



  • Transferring class User in the folder Models♪ Changed namespace in class. Changed 'model' => 'App\Models\User' Total config/auth.phpStill a mistake.

    Class '\App\User' not found.

    I'm sorry. in composer.json Total

    "autoload": {
        "classmap": [
            "database"
        ],
    

    add app/Models and did composer dump-autoload - not helping. ♪ config/auth.php value 'model' => I've been doing all the bullshit, and I'm saying,

    Class '\App\User' not found.

    I feel like I don't get information. config/auth.php Tell me what else we can try to do. User Found it.



  • After the manipulation of the structures, it is necessary to clean up and re-create the configurations.

    In the command line, you'll do the project.

    php artisan cache:clear
    php artisan config:cache
    


Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2