l5-repository icon indicating copy to clipboard operation
l5-repository copied to clipboard

how to use l5-repository for laravel-modules

Open arshiyaolka opened this issue 6 years ago • 7 comments

how to use l5-repository for laravel-modules ?

arshiyaolka avatar Apr 07 '19 11:04 arshiyaolka

how to use l5-repository for laravel-modules ? Plz

reksmeysrey avatar Apr 25 '19 14:04 reksmeysrey

how to use l5-repository for laravel-modules ? Plz too

nelsonlucas avatar May 17 '19 21:05 nelsonlucas

any message yet?!

mahmoud-m-abadi avatar Sep 08 '19 07:09 mahmoud-m-abadi

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.

mahmoud-m-abadi avatar Sep 12 '19 10:09 mahmoud-m-abadi

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 avatar Jun 28 '20 21:06 mrlinnth

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 avatar Jan 04 '21 01:01 ThinkDevStudios

@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

mrlinnth avatar Jan 20 '21 17:01 mrlinnth