Download the PHP package alpenist/artisan-teleport without Composer
On this page you can find all versions of the php package alpenist/artisan-teleport. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download alpenist/artisan-teleport
More information about alpenist/artisan-teleport
Files in alpenist/artisan-teleport
Package artisan-teleport
Short Description Provides laravel artisan support for changing the default generator folder
License MIT
Homepage https://github.com/alpenist/artisan-teleport
Informations about the package artisan-teleport
Artisan Teleport
Provides Laravel Artisan support for more control on changing the default generated destination folder
Who is it for
The default laravel folder structure works perfectly fine for most cases but if you decided to take a different approach organizing your folder structure especially for larger than usual projects for example (Hexagonal, Domain Driven Architecture, etc....) then this package is useful for you if you still want to use artisan
to generate your stubs without the need to manually change the newly created namespaces. It all will work the exact same way like the default make command and has all the options that each command provides.
You can alternate with the default make command and generate stubs easily in scenarios like this
or even hook to the composer in laravel folder from a completely different project outside the main laravel application if you want
Installation
Install the package via composer:
Publish the config file with:
Change the namespace of your package root in the published artisan-teleport.php config file, also change the root path relative to base_path() if you need to:
Usage
Assuming signature_prefix
is set to create
and the default namespace set to App
and the base path is set to project/src/App
the following line will create a model with the namespace App\Clients\Models
in project/src/App/Clients/Models
folder
If you have defined an additional namespace Acme
in the config which has base set to project/src/Acme
you may provide the namespace as a second argument and it will create a model with the namespace Acme\Employees\Models
in project/src/Acme/Employees/Models
folder
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
- Hiro Garabedian
- All Contributors
License
The MIT License (MIT). Please see License File for more information.