app/Http/Requests/UpdatePostRequest.php
/**
     * Determine if the user is authorized to make this request.
     *
     * @return bool
     */
Determine if the user is authorized to make this request.
@return bool
Determine if the user is authorized to make this request . @return bool
public function authorize()
    {
		$post = Post::find($this->route('post'));
		if(Sentinel::getUser()->id != $post->user_id) {
			return false;
		}
        return true;
    }
public function authorize ( ) { $ post = Post :: find ( $ this -> route ( 'post' ) ) ; if ( Sentinel :: getUser ( ) -> id != $ post -> user_id ) { return false ; } return true ; }
Determine if the user is authorized to make this request.
Determine if the user is authorized to make this request .