app/Http/Requests/EliminarAlbumRequest.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()
	{
		$user = Auth::user();
		$id = $this->get('id');
		$album=$user->albumes()->find($id);
		if($album)
			return true;
		else
			return false;
	}
public function authorize ( ) { $ user = Auth :: user ( ) ; $ id = $ this -> get ( 'id' ) ; $ album = $ user -> albumes ( ) -> find ( $ id ) ; if ( $ album ) return true ; else return false ; }
Determine if the user is authorized to make this request.
Determine if the user is authorized to make this request .