sur2548's avatar

E-commerce

I want to make an e-commerce site and a native android application. I want to use Laravel blade as web front-end. So what should i do, make rest api? If i make a rest service then how i able to use blade?

0 likes
4 replies
bobbybouwmann's avatar
Level 88

Well you have two options here.

Either make an API from your application where your app and your front-end will use the API. The front-end then needs to be build using a front-end framework.

Another option is using two different ways of serving the content. For example create an API for the app and use normal controllers and views for your website. You can use design patterns like repositories to make sure you don't have duplicated code everywhere.

Both options are fine as well ;)

1 like
sur2548's avatar

Thank You bobbybouwmann. I think I will use repositories.

Please or to participate in this conversation.