z-song / laravel-admin

Build a full-featured administrative interface in ten minutes
https://laravel-admin.org
MIT License
11.13k stars 2.81k forks source link

can i add where in selectable #5705

Open MohamedUnis opened 1 year ago

MohamedUnis commented 1 year ago

Description:

Steps To Reproduce:

technilogics commented 1 year ago

Yes @MohamedUnis in make method `

public function make() { $this->model()->where('user_type_id','<>','3'); . . . }

`

alexoleynik0 commented 1 year ago

Selectable works basically as Grid with some layout changes. But you can overwrite them to if you want. My approach is to do

/** @var Grid */
$grid = $this;

at the beginning of the make method to make it more familiar.

Mark the issue as resolved?