Skip to content

Instantly share code, notes, and snippets.

@breizhwave
Created September 16, 2018 07:11
Show Gist options
  • Save breizhwave/de5baa316d0018b352a38fb3372d3757 to your computer and use it in GitHub Desktop.
Save breizhwave/de5baa316d0018b352a38fb3372d3757 to your computer and use it in GitHub Desktop.
addSelectField
<?php
namespace App\Http\Controllers\Admin;
use Backpack\CRUD\app\Http\Controllers\CrudController;
// VALIDATION: change the requests to match your own file names if you need form validation
use App\Http\Requests\WaveResourceRequest as StoreRequest;
use App\Http\Requests\WaveResourceRequest as UpdateRequest;
class WaveCrudController extends CrudController
{
public function addSelectField($arr)
{
$this->crud->addColumn($arr);
$this->crud->addField($arr );
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment