mercredi 25 janvier 2017

According to this tutorial where have I to create this class in my Laravel project (a class implementing the UserProviderInterface interface)

I am abslolutly new in PHP and moreover in Laravel framework (I came from Java).

I am following this tutorial to create a custom authentication driver:

http://ift.tt/1NVSePd

I have a very newbye doubt: at the beginning of this tutorial it show that I have to create a class that implements UserProviderInterface.

It only show the code but not where this class have to be put into my Laravel project. The only clue about its positioning is the namespace:

namespace MyApp\Extensions;

But exactly where have I to put it?

I have the following structure:

enter image description here

It say to put it into MyApp\Extensions but I have not MyApp and Extension folder in my project? (or maybe the nampespaces name doesn't reflect a directory structure into the project tree?)

So where have I to create this class?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire