app/Services/UserService.php
public function administrators(): Collection
    {
        return DB::table('user')
            ->join('user_setting', static function (JoinClause $join): void {
                $join
                    ->on('user_setting.user_id', '=', 'user.user_id')
                    ->where('user_setting.setting_name', '=', 'canadmin')
                    ->where('user_setting.setting_value', '=', '1');
            })
            ->where('user.user_id', '>', 0)
            ->orderBy('real_name')
            ->select(['user.*'])
            ->get()
            ->map(User::rowMapper());
    }
public function administrators(): Collection
    {
        return DB::table('user')
            ->join('user_setting', static function (JoinClause $join): void {
                $join
                    ->on('user_setting.user_id', '=', 'user.user_id')
                    ->where('user_setting.setting_name', '=', 'canadmin')
                    ->where('user_setting.setting_value', '=', '1');
            })
            ->where('user.user_id', '>', 0)
            ->orderBy('real_name')
            ->select(['user.*'])
            ->get()
            ->map(User::rowMapper());
    }
public function administrators ( ) : Collection { return DB :: table ( 'user' ) -> join ( 'user_setting' , static function ( JoinClause $ join ) : void { $ join -> on ( 'user_setting.user_id' , '=' , 'user.user_id' ) -> where ( 'user_setting.setting_name' , '=' , 'canadmin' ) -> where ( 'user_setting.setting_value' , '=' , '1' ) ; } ) -> where ( 'user.user_id' , '>' , 0 ) -> orderBy ( 'real_name' ) -> select ( [ 'user.*' ] ) -> get ( ) -> map ( User :: rowMapper ( ) ) ; }
Get a list of all administrators.

@return Collection
@return User[]
Get a list of all administrators .