mtvbrianking / multi-auth

Laravel Multi-Authentication Package
https://github.com/mtvbrianking/multi-auth-diy
MIT License
179 stars 25 forks source link

Change Directories #3

Closed dhsananias closed 6 years ago

dhsananias commented 6 years ago

Is there any way to remove from vendors how the image suggests these routes and files without affecting the functioning of the lib? image

mtvbrianking commented 6 years ago

I didn't get your question; "any way to remove from vendors", what do you wish to remove from vendor?

dhsananias commented 6 years ago

I would like to get these directories inside src in vendor to put inside App, since when updating the view via composer, it updates the lib and I end up losing everything I did ... How to solve this?

mtvbrianking commented 6 years ago

Don't work from vendor, after installing the package and registering it in config/app.php, whole it functionality will be accessible to your app.

Therefore; just add your app logic in app directory

dhsananias commented 6 years ago

@mtvbrianking As I explain, for some reason it was not added to the appfolder. So, imagining a hypothetical situation, where this automated directory transfer does not work, however it has been installed and not config/app.php, how to do this transfer manually?

ErrorException (E_WARNING) include(C:\laragon\www\project\vendor\composer/../bmatovu/multi-auth/src/Models/Admin.php): failed to open stream: No such file or directory

mtvbrianking commented 6 years ago

@hananiamizrahi I had some error in the readme file, my bad.

I have corrected the file, and update the artisan vendor:publish options. and made a new release v1.0.3.

Now you can simply run composer update and all should be fine.

Thank you so much for pointing out. Am sorry I misinterpreted you issue at first.

dhsananias commented 6 years ago

@mtvbrianking There is some way to rename the controllers that are generated in the applications, it is much more recent 1.0.3, but when creating new routes protected by the administrator, they have the controllers still inside the vendor vendor\Bmatovu\MultiAuth\Controladores\Admin and maybe the ideal is that I can, in the App directory, configure my logics without using the namespace inside vendor...

mtvbrianking commented 6 years ago

@hananiamizrahi I will implement that as well, this week. Hopeful it should be ready by midweek.

mtvbrianking commented 6 years ago

@hananiamizrahi I under estimated the hill ahead so it too me a couple of more days to make the promised improvements.

Finally here is version: v1.1.0 with the promised improvements and more...

Thank you for your continued supported