headerx / laravel-jetstream-installers
The missing commands to install various packages into the Jetstream skeleton
Fund package maintenance!
headerx
Requires
- php: ^8.0
- illuminate/contracts: ^9.0
- laravel/jetstream: ^2.6
- spatie/laravel-package-tools: ^1.9.2
Requires (Dev)
- nunomaduro/collision: ^6.0
- nunomaduro/larastan: ^2.0.1
- orchestra/testbench: ^7.0
- pestphp/pest: ^1.21
- pestphp/pest-plugin-laravel: ^1.1
- phpstan/extension-installer: ^1.1
- phpstan/phpstan-deprecation-rules: ^1.0
- phpstan/phpstan-phpunit: ^1.0
- phpunit/phpunit: ^9.5
- spatie/laravel-ray: ^1.26
This package is auto-updated.
Last update: 2024-03-19 14:40:27 UTC
README
Supported packages
Currently the only command/installer available is for lab404/laravel-impersonate
Supported Commands
Command | Windows | Mac | Ubuntu | Jetstream | Laravel |
---|---|---|---|---|---|
jetstream-installers:lab404-impersonate |
❌ | ✔️ | ✔️ | 2.x | 8.x-9x |
Installation
You can install the package via composer:
composer require headerx/laravel-jetstream-installers
You can publish the config file with:
php artisan vendor:publish --tag="laravel-jetstream-installers-config"
This is the contents of the published config file:
<?php // config for HeaderX/JetstreamInstallers return [ 'lab404-impersonate' => [ 'enabled' => env('LAB404_IMPERSONATE', false), 'middleware' => [ 'web', 'auth:sanctum', // 'can:impersonate', ], 'route_prefix' => 'lab404-impersonate', ], ];
Optionally, you can publish the views using
php artisan vendor:publish --tag="laravel-jetstream-installers-views"
Usage
Running Commands
Currently the only command available is for lab404/laravel-impersonate
:
php artisan jetstream-installers:lab404-impersonate --help Description: install lab404/laravel-impersonate into skeleton with routes and views Usage: jetstream-installers:lab404-impersonate [options] Options: --composer[=COMPOSER] Absolute path to the Composer binary which should be used to install packages [default: "global"] -h, --help Display help for the given command. When no command is given display help for the list command -q, --quiet Do not output any message -V, --version Display this application version --ansi|--no-ansi Force (or disable --no-ansi) ANSI output -n, --no-interaction Do not ask any interactive question --env[=ENV] The environment the command should run under -v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
Writing Your Own Installers
Installer::insertLineAfter( app_path('Models/User.php'), 'use Laravel\\Jetstream\\HasProfilePhoto;', 'use Lab404\\Impersonate\Models\\Impersonate;' )
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.