public function findOrFail($id, array $with = [])
    {
        $query = $this->make($with);

        return $query->findOrFail($id);
    }
public function findOrFail($id, array $with = [])
    {
        $query = $this->make($with);

        return $query->findOrFail($id);
    }
public function findOrFail ( $ id , array $ with = [ ] ) { $ query = $ this -> make ( $ with ) ; return $ query -> findOrFail ( $ id ) ; }
Find a specific record.
Throws exception if not found.

@param $id
@param array $with

@throws \Illuminate\Database\Eloquent\ModelNotFoundException

@return mixed
Find a specific record . Throws exception if not found .