public function find($id)
    {
        $query = $this->getQuery();
        if ($this->isRestorable()) {
            $query->withTrashed();
        }

        return $query->find($id);
    }
public function find($id)
    {
        $query = $this->getQuery();
        if ($this->isRestorable()) {
            $query->withTrashed();
        }

        return $query->find($id);
    }
public function find ( $ id ) { $ query = $ this -> getQuery ( ) ; if ( $ this -> isRestorable ( ) ) { $ query -> withTrashed ( ) ; } return $ query -> find ( $ id ) ; }
Find model instance by id.

@param int $id

@return mixed
Find model instance by id .