how to use l5-repository for laravel-modules
how to use l5-repository for laravel-modules ?
how to use l5-repository for laravel-modules ? Plz
how to use l5-repository for laravel-modules ? Plz too
any message yet?!
I could use this package in modules. You just need to make relevant folders in module folder (as L5 structure) and add your Repositoies/Eloquents, and then bind them using Module service provider. Other stuff are the same ways.
I solved this with a custom artisan command so that the files are properly created in my module directory.
I have created a gist file for anyone's reference.
https://gist.github.com/mrlinnth/4508eb22afab288fca61634ee6d6a2c3
I solved this with a custom artisan command so that the files are properly created in my module directory.
I have created a gist file for anyone's reference.
https://gist.github.com/mrlinnth/4508eb22afab288fca61634ee6d6a2c3
mrlinnth. Where should I put the module repository. on the parent directory or inside the module directory. What is the artisan command. php artisan make:repository Post but how will it be pointed to the specific module?
@ThinkDevStudios sorry for late reply.
Let's say if you want to create Post repository in Blog module, you can run
php artisan make:module-repository Blog Post