Set up a Laravel project to console/api only.
- PHP >= 8.2
- Laravel >= 11.0
Only new projects with Laravel 11 or later.(No starter kit, No API)
composer require revolution/laravel-slim --dev
composer remove revolution/laravel-slim --dev
Be sure to run this command only on new projects. A lot of files are deleted.
php artisan slim:console
Which files will be deleted? See SlimConsoleCommand.php
You can use the usual artisan commands.
php artisan make:command Test
php artisan config:publish services
Be sure to run this command only on new projects.
php artisan slim:api
MIT