revolution/laravel-slim

Set up a Laravel project to console/api only.

1.1.1 2024-04-23 08:04 UTC

This package is auto-updated.

Last update: 2024-04-26 08:58:21 UTC


README

Set up a Laravel project to console/api only.

Requirements

  • PHP >= 8.2
  • Laravel >= 11.0

Only new projects with Laravel 11 or later.(No starter kit, No API)

Installation

composer require revolution/laravel-slim --dev

Uninstall

composer remove revolution/laravel-slim --dev

Usage

Console project

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

After set up

You can use the usual artisan commands.

php artisan make:command Test

Re-add config file

php artisan config:publish services

API project (Sanctum)

Be sure to run this command only on new projects.

php artisan slim:api

LICENSE

MIT