Habilidades Puntuadas #2
@ -33,6 +33,7 @@ public function index()
|
||||
|
||||
return $this->vuew('index', [
|
||||
'departments' => department::where('name', 'LIKE', "%{$q}%")
|
||||
->orWhere('description', 'LIKE', "%{$q}%")
|
||||
->select([
|
||||
'id',
|
||||
'name',
|
||||
|
||||
@ -24,7 +24,7 @@ class department extends Model
|
||||
*/
|
||||
protected $fillable = [
|
||||
'name',
|
||||
'description',
|
||||
'description'
|
||||
];
|
||||
|
||||
/**
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user