php - Lumen for both webservice and website -


i have develop web service , admin panel. thought of developing web service in lumen , admin panel in laravel. if go have repeat code base basic entities user, categories, products etc. question can use lumen both?.

  • admin side: lumen + angular/some other
  • webservice: lumen

i researched , found in lumen, packages not included maintaining speed. if required, possible add packages later?

please advice me.

you might want give article building api laravel application lumen bit old , lumen has changed lot lately principle should still apply. create laravel app , using git submodule include dependency on lumen project. lets reuse of code such models ease.

the 2 key bits include laravel project submodule

git submodule add --force git@github.com:adamgoose/laravel laravel

update lumen composer.json autoload laravel code well

{     "autoload": {         "psr-4": {             "app\\": "app/",             "application\\": "laravel/app/"         },         "classmap": [             "tests/"         ]     } } 

Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -