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