Support the ongoing development of Laravel.io →
Configuration Packages
Last updated 2 years ago.
0

Did you try

php artisan dump-autoload

?

From the Laravel documentation:

This command will regenerate the autoload files for your root project, as well as any workbenches you have created.
Last updated 2 years ago.
0

To @d33k4y : Yes ~ I have already try it, but I still get the ERROR " Class 'LaravelFacebookRedirectLoginHelper' not found "

Last updated 2 years ago.
0

can you try this and run "php artisan dump-autoload" again ?

"autoload": {
	"classmap": [
		"app/commands",
		"app/controllers",
		"app/models",
       "app/libs",
		"app/database/migrations",
		"app/database/seeds",
		"app/tests/TestCase.php"
	]
    },
Last updated 2 years ago.
0

to @tantam I have set this befor > < still cant use this class

this my composer.json

"autoload": {
         "classmap": [
             "app/commands",
             "app/controllers",
             "app/models",
             "app/libs",
             "app/database/migrations",
             "app/database/seeds",
             "app/tests/TestCase.php"
         ]
     }
Last updated 2 years ago.
0

Sometime I got this issue and I have to remove complied and vendor folder, then I run composer install again ! Maybe you can try ?

Or, maybe you have to add \ before your class name ?

Last updated 2 years ago.
0
Solution

Hey guys > < thanks to help me solve this question.

Finally, I found that it's my fault.

I use PHP short tag at initial (" <? ") so my composer can't read that class correctly.

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

twxia twxia Joined 14 Feb 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.