Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

toyape33's avatar

Create api project Laravel

Hello guys, is there a command to create a Laravel project only as an API project without views, webpack, etc. Right now it's only composer create-project --prefer-dist ... .NET and Express has those features and it would be really nice for laravel to have this command utility as well.

0 likes
3 replies
toyape33's avatar

@sinnbeck Omg this is it! I've heard Lumen so many times. I didn't knew what that was until now! Thank you!

martinbean's avatar

@toyape33 Lumen is a trimmed-down version of Laravel, but because of that also has features missing that actually aid API development that you can find in Laravel. Things like route–model binding, form request validation, and Eloquent API resources.

There’s nothing stopping you creating a new Laravel project and removing the stuff you don’t need, such as Mix and the front-end resources.

Please or to participate in this conversation.