nafeeur10's avatar

How to work with separately in Laravel

https://ibb.co/T8xsdWD

I want to work separately. Suppose, I want to build an E-Commerce. Storefront will be SPA and Admin will have Vendor and others system.

What will be the better approach to do this type of development?

0 likes
10 replies
automica's avatar

@nafeeur10 I can see a grab with 'Themes' highlighted. How does this relate to your question?

1 like
nafeeur10's avatar

@automica,

Thank you for your reply. Here is an Example. Where "Theme" is a Folder where all StoreFront Code is situated.

automica's avatar

@nafeeur10 so you just want to use 2 themes? 1 for the front end and one for the admin?

1 like
nafeeur10's avatar

@automica,

Not only Two Themes actually. For building Large scale Solution I just need to know the better way. Suppose, If I divide the whole solution into two parts (For Example) like StoreFront and Admin.

All MVC codes of Storefront will stay there and All MVC codes of Admin will stay in Admin Folder.

Something like this.

automica's avatar

@nafeeur10 I'd go for defining subfolders inside your views for your various sections and then put a layout for each section in there. you can go more granular after that.

You might find you end up with some common components. As this is unknown at the moment, then its not necessary to be too complicated.

For admin theme, you might want to look at Laravel Nova -> https://nova.laravel.com/

or Laravel Backpack -> https://backpackforlaravel.com/

1 like
nafeeur10's avatar

@automica,

Actually that is not my Question. Please see my example image. Theme is another folder besides Laravel regular Folders. I am finding the way.

automica's avatar

@nafeeur10 is this a project you've adopted? When I've seen third party themes and views being used, they tend to be in a /views/vendors/themeName structure.

1 like
automica's avatar

@nafeeur10 that looks like an entire application. Is that theme something you've installed or is it something you've adopted? what version of Laravel is it in?

Please or to participate in this conversation.