| Package Data | |
|---|---|
| Maintainer Username: | jayaregalinada |
| Maintainer Contact: | jayaregalinada@gmail.com (Jay Are Galinada) |
| Package Create Date: | 2015-07-16 |
| Package Last Update: | 2015-08-11 |
| Language: | PHP |
| License: | MIT |
| Last Refreshed: | 2025-10-29 03:05:21 |
| Package Statistics | |
|---|---|
| Total Downloads: | 39 |
| Monthly Downloads: | 0 |
| Daily Downloads: | 0 |
| Total Stars: | 2 |
| Total Watchers: | 1 |
| Total Forks: | 0 |
| Total Open Issues: | 0 |
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.
Laravel Packager are not included out-of-the-box (updated since 1.0.2). See below for instruction
Via Composer
$ composer require jag/common
After the installation/update completed, add the service provider to the $provider array in config/app.app
'Jag\Common\CommonServiceProvider'
After that, run
$ php artisan vendor:publish
Configurations from clockwork, ide-helper, image, imagecache, and 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 config/app.app
'Jag\Common\OptionServiceProvider'
After that, publish the migrations.
$ php artisan vendor:publish --provider="Jag\Common\OptionServiceProvider"
You need to add Clockwork middleware, in your app/Http/Kernel.php
protected $middleware = [
'Clockwork\Support\Laravel\ClockworkMiddleware',
...
]
NOTE: This is for developing Laravel packages but only works for Laravel ~5.1.
If you are using Laravel ~5.1 add the service provider in config/app.php
'JeroenG\Packager\PackagerServiceProvider',
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 config/app.php at $aliases array
'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 ::class
You can use the Exception handler specially for developing. This includes the Whoops. You can extend your app/Exceptions/Handler.php with Jag\Common\Exceptions\Handler.
For easy JSON response on your Controller, just included the trait Jag\Common\Traits\ControllerResponsesTrait to your app/Http/Controllers/Controller.php.
Please see CHANGELOG for more information what has changed recently.
If you discover any security related issues, please email jayaregalinada@gmail.com instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.