-
Notifications
You must be signed in to change notification settings - Fork 238
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error in entegrating the library in laravel 5 #6
Comments
Class 'Aacotroneo\Saml2\Facades\Facade' not found having this error in laravel 5 adding "aacotroneo/laravel-saml2": "*" in my composer.json and updated already 'alias' => [ *created a controller with codes : |
You don't need to include the alias if you are not using it. As you are accessing the Facade directly, you should use php namespaces (prefix it with the inverted slash - \Saml2Auth::login();). The alias alternative is to put a 'use Saml2' and call 'Saml2::login()' If that's not the problem, provide the full stack. |
aah? therefore ... something wrong in my controller?? can you please edit that controller for me? i'm new here in laravel 5 .. thx for bearing with me. |
just modify the index(). Add a back-slash to the call and see if it works. You don't need to add the 'alias' entry. use Aacotroneo\Saml2\Facades\Saml2Auth;
class myController extends Controller {
public function index()
{
\Saml2Auth::login();
}
} |
got a new error |
hmm... this is strange.. This is just php... composer should load the autoload of all your dependencies (i.e this library).. and you should be able to use those classes. Try running a 'composer dump-autoload'. |
still having the error ! i also alreading updated my composer.json for the updates. but stiLL Class 'Saml2Auth' not found |
i already fixed it sir. is just updated my composer.json for your new updates.. then applied my controller code on above.. thnx.. for kind reponse.. more power. :) |
Great. Im glad you got it working. Cheers
|
No description provided.
The text was updated successfully, but these errors were encountered: