I've been developing a custom package for Laravel 5.2 and I am at the point now where I am implementing Authentication.
I tried adding an Auth folder to my resources/views directory as well as the Controllers needed within my package directory with proper namespaces. It hits the the controllers but does not see the view as it returns an error saying [auth.login] not found.
I tried adding the property overides to the AuthController as such:
protected $loginView = 'packagename::auth.login';
protected $registerView = 'packagename::register.form';
protected $linkRequestView = 'packagename::link.request.view';
protected $resetView = 'packagename::reset.view';
However, it still is trying to hit the views located in the main Laravel app directory, and not the package.
What is the best practice/proper way to setup Auth views,routes etc within a Laravel package so that it can have it's own admin area?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire