Hi! I was wondering if there's a minimal template for a Laravel site? The default Laravel installation comes with a whole heap of things I don't need, like config files for things I'm not using (eg. broadcasting.php) as well as controllers that I don't need (login, registration, etc) and JavaScript libraries I don't use (Vue, jQuery). All I want is a barebones Laravel site with as few files as possible. I know that I can just delete the stuff I'm not using, but it's tedious to do that every time. Is there a barebones/minimal Laravel site template that I could use instead?
In Laravel 5.5 there will be an artisan command for preseting the frontend framework stuff. If you use
php artisan preset none
you won't have that vue/react stuff in your application. For more information please see the Laravel Documentation.
And for the Controller+View stuff I suggest to simply delete the files. ;-)
You could strip everything out to make your own barebones repo and clone that when you're creating a new app.
You could strip everything out to make your own barebones repo and clone that when you're creating a new app.
I think that's what I'll do. I was just wondering whether anyone else had already done this.
Thanks!
Or better yet, you can simply go with Lumen: https://lumen.laravel.com/
It's still Laravel but purposely designed to be very minimal. Thus called a micro-framework
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community