Reputation:
How can I completely remove Blade from Lumen and/or what other packages and stuff can I delete to make it as minimalistic as possible. My end goal is to make it very very simple, but keep the critical stuff.
All I need from Lumen is to handle the back end and write an API, so I can use that API for Angular front end - so things like Blade/Auth/Routing etc are not needed, how can I remove them and what else can I remove?
Is there a tutorial for something like this or does someone have any experience regarding this issue?
/edit: I'm aware that it might not affect performance or whatsoever, but I just need to keep everything as simple as possible, it makes me feel better about development if I know that I have stuff, which I actually use.
Upvotes: 3
Views: 3142
Reputation: 889
Be very careful with the suggested answer. Don't just go willy nilly removing service providers. It will likely break stuff and composer update would fail.
Even on a fresh build 5.7.x, I tried to remove notificationServiceProvider and laravel couldn't initialize the container and immediately composer update failed. I didn't dig further as I'm sure there are ways to disable it completely but this is just one example.
You have to turn off one dial at a time, run your full regression suite if you have one, composer update, deployment and proceed.
Upvotes: 0
Reputation: 29985
To strip down some features of Laravel you can open config/app.php
and remove service providers and aliases you don't use.
Upvotes: 2