Common resources like classes, helpers, traits and more
Nah, some boilerplate here. All included packages service provider are already registered.
Option service are not included out-of-the-box, instead add its service provider. See below for instruction.
- Included Packages
- Post Install
- IDE Helper
- Option Service Provider
- Clockwork Middleware
- How to use Laravel Packager
- Optional Facade
- Extend Exception Handler
- JSON Controller Response Trait
- Change Log
- Socialite - Fluent interface to OAuth authentication
- Image - PHP Image Manipulation
- Image(Cache) - Caching extension for the Intervention Image Class
- Html/Form - Illuminate HTML component
- Entrust - Role-based Permissions
- HTML Sanitizer- HTML Sanitizer
- iSeed - Inverse seed generator
- Whoops - PHP errors for cool kids
- Clockwork - Chrome extension for PHP development
$ composer require jag/common
After the installation/update completed, add the service provider to the
$provider array in
After that, run
$ php artisan vendor:publish
entrust generated. Also,
users migration will be generated.
After installing/updating composer, you can now re-generate the docs yourself
$ php artisan ide-helper:generate
You can read the full documentation of this package
If you want to include the Option Service, add the service provider to the
$provider array in
After that, publish the migrations.
$ php artisan vendor:publish --provider="Jag\Common\OptionServiceProvider"
You need to add Clockwork middleware, in your
protected $middleware = [ 'Clockwork\Support\Laravel\ClockworkMiddleware', ... ]
NOTE: This is for developing Laravel packages but only works for Laravel
If you are using Laravel
~5.1 add the service provider in
This package provides you with a simple tool to set up a new packages. Nothing more, nothing less. Read more of its documentation here.
However, an article teaches you to how to create packages.
Edit and Add your
'aliases' => [ ... 'Socialite' => 'Laravel\Socialite\Facades\Socialite', 'Image' => 'Intervention\Image\Facades\Image', 'Html' => 'Illuminate\Html\HtmlFacade', 'Form' => 'Illuminate\Html\FormFacade', 'Entrust' => 'Zizaco\Entrust\EntrustFacade', ],
You can also use the class name resolution via
You can use the Exception handler specially for developing. This includes the Whoops. You can extend your
For easy JSON response on your Controller, just included the trait
Jag\Common\Traits\ControllerResponsesTrait to your
Please see CHANGELOG for more information what has changed recently.
If you discover any security related issues, please email email@example.com instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.