Downloads
Stars
Version
This is where your description should go. Take a look at contributing.md to see a to do list.
Via Composer
$ composer require longnd/backpacksplit
Optional you can publish the configuration to provide a different service provider stub. The default is here.
$ php artisan vendor:publish --provider="LongND\BackpackSplit\BackpackSplitServiceProvider"
With DemoCrudController in App\Http\Controller\Admin\DemoCrudController we edit it if you have a default CRUD Controller:
namespace App\Http\Controllers\Admin;
use Backpack\CRUD\app\Http\Controllers\DemoController;
// VALIDATION: change the requests to match your own file names if you need form validation
use App\Http\Requests\DemoRequest as StoreRequest;
use App\Http\Requests\DemoRequest as UpdateRequest;
use Backpack\CRUD\CrudPanel;
use LongND\BackpackSplit\Traits\SetupModal;
/**
* Class StoreCrudController
* @package App\Http\Controllers\Admin
* @property-read CrudPanel $crud
*/
class StoreCrudController extends CrudController
{
use SetupModal;
public function setup()
{
//code-here....
$this->setupModal();
//code-here...
}
}
and if you want to create new backpack controller with modal crud you try:
$ php artisan backpack:crud demo --option=modal
to use ModalCRUD and result:
####OR
namespace App\Http\Controllers\Admin;
use Backpack\CRUD\app\Http\Controllers\DemoController;
// VALIDATION: change the requests to match your own file names if you need form validation
use App\Http\Requests\DemoRequest as StoreRequest;
use App\Http\Requests\DemoRequest as UpdateRequest;
use Backpack\CRUD\CrudPanel;
use LongND\BackpackSplit\Traits\SetupSplit;
/**
* Class StoreCrudController
* @package App\Http\Controllers\Admin
* @property-read CrudPanel $crud
*/
class StoreCrudController extends CrudController
{
use SetupSplit;
public function setup()
{
//code-here....
$this->setupSplit('col-md-8');
//code-here...
}
}
and if you want to create new backpack controller with split crud you try:
$ php artisan backpack:crud demo --option=split
to use SplitCRUD and result:
Please see the changelog for more information on what has changed recently.
$ composer test
Please see contributing.md for details and a todolist.
If you discover any security related issues, please email author email instead of using the issue tracker.
license. Please see the license file for more information.