Created
September 16, 2018 07:11
-
-
Save breizhwave/de5baa316d0018b352a38fb3372d3757 to your computer and use it in GitHub Desktop.
addSelectField
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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