Set up a Laravel project to console/api only.
- Console only
- Stateless API only
Note: laravel-console-starter is a starter kit that has this package applied.
- PHP >= 8.2
- Laravel >= 12.0
Only new projects with Laravel 12.(No starter kit, No API)
composer require revolution/laravel-slim --dev
composer remove revolution/laravel-slim --dev
Once you have run the command you can uninstall this package.
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