headerx/laravel-jetstream-installers

The missing commands to install various packages into the Jetstream skeleton

Downloads

71

Stars

1

Version

v0.1.1

This package has been archived

The missing commands to install various packages into the Jetstream skeleton

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

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 :x: :heavy_check_mark: :heavy_check_mark: 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.

headerx

Author

headerx