public function show($id)
    {
        $model = Logs::withoutGlobalScopes()->with('component', 'priority', 'brand')->with(['user' => function($query) {
                        $query->whereRaw('tbl_users.id in (' . implode(',', $this->users()) . ') or tbl_users.id is null');
                    }])->whereId($id)->firstOrFail();
        return $this->presenter->show($model);
    }
public function show($id)
    {
        $model = Logs::withoutGlobalScopes()->with('component', 'priority', 'brand')->with(['user' => function($query) {
                        $query->whereRaw('tbl_users.id in (' . implode(',', $this->users()) . ') or tbl_users.id is null');
                    }])->whereId($id)->firstOrFail();
        return $this->presenter->show($model);
    }
public function show ( $ id ) { $ model = Logs :: withoutGlobalScopes ( ) -> with ( 'component' , 'priority' , 'brand' ) -> with ( [ 'user' => function ( $ query ) { $ query -> whereRaw ( 'tbl_users.id in (' . implode ( ',' , $ this -> users ( ) ) . ') or tbl_users.id is null' ) ; } ] ) -> whereId ( $ id ) -> firstOrFail ( ) ; return $ this -> presenter -> show ( $ model ) ; }
shows details about single row log

@param type $id
@return type
shows details about single row log