invoiceninja/app/Http/Requests/BillingSubscription/CreateBillingSubscriptionRequest.php
2021-03-09 14:29:57 +01:00

32 lines
603 B
PHP

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