Using Laraship Skeleton Foo Module

Using Laraship Skeleton Foo Module

Laraship QuestionsCategory: TechnicalUsing Laraship Skeleton Foo Module
jedjie asked 4 months ago

Hello,

I do need to have a few clarifications on how to use the skeleton Foo Module you provided for us to create our own module to address our needs to add our own custom views, controllers and database to the Laraship modular approach design.

I just renamed the _module.json to module.json as instructed under the Foo Skeleton module sample, in order for me to understand how will I import my own page to the structure, I did not modify any just for me to understand the whole structure of the Foo Skeleton Module sample, so I just renamed the _module.json to install and study it by default. I like the concept but it looks like it is briefly described and most of the structure is Undocumented. I am just trying to adapt my existing pages here to achieve my money worth with the purchase of Laraship Elite.

 

 

Please give clarification on this

  1. The default Foo/Bar -> page is not functioning, but looking to the root and the Bar/Show.blade.php it is there, but when clicked in the created Admin Dashboard Foo/Bar link -> it displays 404-error Page Not Found.
  2. Where is the declaration on how do I customize the icons and the Modules submenus that I will create?Can you provide the additional instructions please on how to mend using the skeleton module provided so that we will understand using how to use it on the developers side.

I already attached an image on this post.

1 Answers
Best Answer
laraship Staff answered 4 months ago

Hello

1) please make sure to clear routes cache by running the command :

php artisan route:clear 

2) Menu Items can be managed from the Menu Manager under Admin, its pretty straightforward and you can change Titles , icons easily from there

if you want to edit them from the module installer, then you can manage them from the FooMenuDatabaseSeeder, screenshot attached.

Attachments
jedjie replied 4 months ago

Hello,
Thank you very much for the immediate response, and the issue is now resolved. This Application package is neat and well designed, and I am loving it, so organized. whoever you are… thank you very much for the tip and screenshot effort. 😀

jedjie replied 4 months ago

My another inquiry is.. hopefully this will be my last inquiry because In my opinion this will be the key to my project through the skeleton plugin provided.

If I am going to modify the Foo plugin module and there is another database other than Bars, for example Clubs, and this will appear as a second sub category of Foo.

What are the files in the Foo plugins I am going to modify? to reflect the Clubs database just like the Bars under the Foo Module when clicked?
I do understand that I will add the clubs in the FooTables migration Schema::create, and cloning the files under for example in the Transformers folder the BarPresenter.php and BarTransformers.php into ClubPresenter.php and ClubTransformer.php.

what other files should I also clone other than modify also?

so that when I clicked the Clubs under Foo will display the Datatable just like Bars in the Foo module category in my Admin Sidebar.

laraship Staff replied 4 months ago

Hello,
Please feel free to open a new question for.

jedjie replied 4 months ago

Thank you, I am trying to love Laraship because its gorgeous and the structure and coding is so elegant but its not loving me back, If you can only provide me a detailed comment on the Foo Skeleton Plugin module so that I can relate to this so much advance and elegant coding, my main priority for now is to create my own Plugin for my Card Journal that will reflect a Workbook Database, StockCard Database and a Journal Database. A three database structure of Foo plugin module is my main objective to recreate according to your sample…
ex. (>Foo —Bar —Clubs —Sauna) equivalent to mine is (>Card —Journal —Workbook —Stockcard)

my main objective is to create a plugin module to work in symbiosis with this beautiful software of Corals… I do program in Laravel but first time I encounter this kind of design that I have no intention to pillage or copy and make my own… dont worry. A good comment or perhaps a three database structure other than Bar in the Foo plugin sample is enough for me, I just want to up my website complete built in Laraship.

Nevertheless if you can provide an example of Three database structure of Foo Skeleton plugin other than the Bar database is enough for me to move on, no need for comments, Im figuring other Corals Modules who has more than one database to begin with but for me the Foo Skeleton plugin is enough for me to begin with, only if it has one more or two database under it, other than the Bar example. Thank you very much!