1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-21 17:01:33 +02:00
invoiceninja/app/Http/Requests/Product/ShowProductRequest.php
2019-04-03 12:17:21 +11:00

32 lines
574 B
PHP

<?php
namespace App\Http\Requests\Product;
//use Illuminate\Foundation\Http\FormRequest;
use App\Http\Requests\Request;
class ShowProductRequest extends Request
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize() : bool
{
return auth()->user()->can('view', $this->product);
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return [
//
];
}
}