Order dashboard systems by name
This commit is contained in:
parent
5fe486b93c
commit
b27d983fe6
@ -70,7 +70,8 @@ class User extends Authenticatable implements MustVerifyEmail
|
|||||||
|
|
||||||
public function systems()
|
public function systems()
|
||||||
{
|
{
|
||||||
return $this->belongsToMany(System::class);
|
return $this->belongsToMany(System::class)
|
||||||
|
->orderBy('name');
|
||||||
}
|
}
|
||||||
|
|
||||||
/* GENERAL METHODS */
|
/* GENERAL METHODS */
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
@use(App\Models\Domain)
|
||||||
|
|
||||||
<div id="sidebar-scroller">
|
<div id="sidebar-scroller">
|
||||||
FTN Networks
|
FTN Networks
|
||||||
|
|
||||||
@ -12,7 +14,7 @@
|
|||||||
@endif
|
@endif
|
||||||
@endauth
|
@endauth
|
||||||
|
|
||||||
@if(($x=\App\Models\Domain::select(['id','name'])
|
@if(($x=Domain::select(['id','name'])
|
||||||
->when(((! $user) || (! $user->isAdmin())),fn($query)=>$query->public()->active())
|
->when(((! $user) || (! $user->isAdmin())),fn($query)=>$query->public()->active())
|
||||||
->orderBy('name')
|
->orderBy('name')
|
||||||
->get())
|
->get())
|
||||||
|
Loading…
Reference in New Issue
Block a user