samedi 4 février 2017

What is the proper way to get ready a 3rd party package in Laravel 5 (5.4)?

I try to migrate an existing project from laravel 4 to laravel 5.

For that I installed a fresh laravel project and import code in it.

I installed a required package in laravel 5:

composer require jenssegers/agent

When I call Agent class to use, laravel gives following error:

Class 'App\Http\Controllers\Agent' not found

What is "use ..." line to add at the top of controller? Or any other solutions?



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2l834ZP
via IFTTT

Aucun commentaire:

Enregistrer un commentaire