Skip to content

Provides Laravel Artisan support for more control on changing the default generated destination folder

License

Notifications You must be signed in to change notification settings

alpenist/artisan-teleport

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Artisan Teleport

GitHub All Releases

Provides laravel artisan support for changing the default generator folder

Installation

Install the package via composer:

composer require alpenist/artisan-teleport

Publish the config file with:

php artisan vendor:publish --provider="Ait\ArtisanTeleport\ArtisanTeleportServiceProvider" --tag="config"

Change the namespace of your package root in the published config file, also change the root path relative to base_path() if you need to:

return [
    // artisan command namespace
    'signature_prefix' => 'create',

    'defaults' => [
        'assets' => '../../../folder/subfolder',
        'base' => '../../../folder/subfolder/src',
        'namespace' => 'Acme',
    ],

    'namespaces' => [
        'ait' => [
            'base_path' => '',
            'path' => 'Domain',
            'namespace' => 'Acme',
        ],
        'app' => [
            'base_path' => '../../../folder/subfolder/src/App',
            'path' => '',
            'namespace' => 'App',
        ],
    ],
];

Usage

Assuming prefix is set to create

php artisan create:model Client

Changelog

Please see CHANGELOG for more information on what has changed recently.

Security

If you discover any security related issues, please use the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

About

Provides Laravel Artisan support for more control on changing the default generated destination folder

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages