Recently i was assigned a task to upgrade old laravel project, there is one controller and not more than 20 files in need to migrate with 200 lines of code on them(on average).
Just for this i setup laravel latest 8.1 , but it comes with a lot of garbage, including sails. i just needed laravel-5.4 like (supporting php-8) with mysql (no sails, mail and other things).
Can i remove sails from it, i couldn't find good documentation on the first page of google to use a minimal laravel so i came here.
I didn't mean to offend anyone but laravel is getting fraustrating with lots of bad bad abstraction i think.
You can remove any package using Composer
composer remove vendor/package
Example of removing sail
❯ composer remove laravel/sail laravel/sail could not be found in require but it is present in require-dev Do you want to remove it from require-dev [yes]? yes ./composer.json has been updated Running composer update laravel/sail Loading composer repositories with package information Updating dependencies Lock file operations: 0 installs, 0 updates, 1 removal - Removing laravel/sail (v1.13.2) Writing lock file Installing dependencies from lock file (including require-dev) Package operations: 0 installs, 0 updates, 1 removal - Removing laravel/sail (v1.13.2) Generating optimized autoload files > Illuminate\Foundation\ComposerScripts::postAutoloadDump > @php artisan package:discover --ansi Discovered Package: barryvdh/laravel-debugbar ... Discovered Package: spatie/laravel-ignition Package manifest generated successfully. > @php artisan vendor:publish --tag=laravel-assets --ansi No publishable resources for tag [laravel-assets]. Publishing complete
After that the vendor folder is modified, the auloader is updated and the laravel/sail
line is removed from composer.json