mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-04-24 03:59:08 -05:00
(Update) Standardize Select Queries 🚀
This commit is contained in:
@@ -40,7 +40,7 @@ class PageController extends Controller
|
||||
*/
|
||||
public function staff()
|
||||
{
|
||||
$staff = DB::table('users')->leftJoin('groups', 'users.group_id', '=', 'groups.id')->select('users.id', 'users.title', 'users.username', 'groups.name', 'groups.color', 'groups.icon')->where('groups.is_admin', 1)->orWhere('groups.is_modo', 1)->get();
|
||||
$staff = DB::table('users')->leftJoin('groups', 'users.group_id', '=', 'groups.id')->select(['users.id', 'users.title', 'users.username', 'groups.name', 'groups.color', 'groups.icon'])->where('groups.is_admin', 1)->orWhere('groups.is_modo', 1)->get();
|
||||
|
||||
return view('page.staff', ['staff' => $staff]);
|
||||
}
|
||||
@@ -52,7 +52,7 @@ class PageController extends Controller
|
||||
*/
|
||||
public function internal()
|
||||
{
|
||||
$internal = DB::table('users')->leftJoin('groups', 'users.group_id', '=', 'groups.id')->select('users.id', 'users.title', 'users.username', 'groups.name', 'groups.color', 'groups.icon')->where('groups.is_internal', 1)->get();
|
||||
$internal = DB::table('users')->leftJoin('groups', 'users.group_id', '=', 'groups.id')->select(['users.id', 'users.title', 'users.username', 'groups.name', 'groups.color', 'groups.icon'])->where('groups.is_internal', 1)->get();
|
||||
|
||||
return view('page.internal', ['internal' => $internal]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user