Recommend this page to a friend! |
Download |
Info | Documentation | Files | Install with Composer | Download | Reputation | Support forum | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2024-08-21 (18 days ago) | Not yet rated by the users | Total: 9 This week: 8 | All time: 11,404 This week: 6 |
Version | License | PHP version | Categories | |||
laravel-make-extende 1.0.0 | Custom (specified... | 7 | Libraries, Project Management, Code G..., P... |
Description | Authors Dipesh Sukhia Contributor | |||
This package can generate files to use in Laravel applications. Innovation Award
|
This package helps to generate and autoload custom helpers, It can generate multilevel helpers in the context of the directory.
You can install the package via composer:
composer require limewell/laravel-make-extender
Generate UserHelper.php under App/Helpers directory
php artisan make:helper UserHelper
Generate Module/UserHelper.php under App/Helpers/Module directory
php artisan make:helper Module/UserHelper
Generate UserService.php under App/Services directory
php artisan make:service UserService
(new UserService())->handle();
Generate invokable UserService.php under App/Services directory
php artisan make:service UserService --invokable
(new UserService())();
Generate UserTrait.php under App/Traits directory
php artisan make:trait UserTrait
Generate bootable UserTrait.php under App/Traits directory
php artisan make:trait UserTrait --bootable
Generate UserScope.php under App/Scopes directory
php artisan make:scope UserScope
see document here for how to use global scopes
Generate JsonCast.php under App/Casts directory
php artisan make:cast JsonCast
see document here for how to use Custom Casts
Generate toUpper.php under App/Macros directory
php artisan make:macro toUpper
see document here for how to use Macro
Generate config file for register view composers
php artisan vendor:publish --provider="Limewell\LaravelMakeExtender\LaravelMakeExtenderServiceProvider" --tag="config"
Generate view composers class
php artisan make:composer MovieComposer
Register view composers Edit config (config/viewcomposers.php)
use App\ViewComposers\MovieComposer;
return [
MovieComposer::class => [
'view1','view2'
],
];
see document here for how to use View Composers
php artisan vendor:publish --provider="Limewell\LaravelMakeExtender\LaravelMakeExtenderServiceProvider" --tag="stubs"
This will export stubs into /stubs/vendor/laravel-make-extender for customization
Please see CHANGELOG for more information what has changed recently.
Please see CONTRIBUTING for details.
The MIT License (MIT). Please see License File for more information.
Files (26) |
File | Role | Description | ||
---|---|---|---|---|
.github (1 file) | ||||
config (2 files) | ||||
src (1 file, 1 directory) | ||||
stubs (9 files) | ||||
.styleci.yml | Data | Auxiliary data | ||
CHANGELOG.md | Data | Auxiliary data | ||
composer.json | Data | Auxiliary data | ||
CONTRIBUTING.md | Data | Auxiliary data | ||
LICENSE.md | Lic. | License text | ||
README.md | Doc. | Documentation |
Files (26) | / | config |
File | Role | Description |
---|---|---|
config.php | Aux. | Configuration script |
viewcomposers.php | Aux. | Configuration script |
Files (26) | / | src |
File | Role | Description | ||
---|---|---|---|---|
Console (1 directory) | ||||
LaravelMakeExtenderServiceProvider.php | Class | Class source |
Files (26) | / | src | / | Console | / | Commands |
File | Role | Description |
---|---|---|
MakeCastCommand.php | Class | Class source |
MakeHelperCommand.php | Class | Class source |
MakeMacroCommand.php | Class | Class source |
MakeScopeCommand.php | Class | Class source |
MakeServiceCommand.php | Class | Class source |
MakeTraitCommand.php | Class | Class source |
MakeViewComposerCommand.php | Class | Class source |
Files (26) | / | stubs |
File | Role | Description |
---|---|---|
cast.stub | Class | Class source |
helper.stub | Data | Auxiliary data |
macro.stub | Example | Example script |
scope.stub | Class | Class source |
service.invokable.stub | Class | Class source |
service.stub | Class | Class source |
trait.bootable.stub | Class | Class source |
trait.stub | Class | Class source |
viewcomposer.stub | Class | Class source |
The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page. |
Install with Composer |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.