2021-03-08 15:19:45 +01:00
|
|
|
<?php
|
2021-03-10 01:08:58 +01:00
|
|
|
/**
|
|
|
|
* Invoice Ninja (https://invoiceninja.com).
|
|
|
|
*
|
|
|
|
* @link https://github.com/invoiceninja/invoiceninja source repository
|
|
|
|
*
|
|
|
|
* @copyright Copyright (c) 2021. Invoice Ninja LLC (https://invoiceninja.com)
|
|
|
|
*
|
|
|
|
* @license https://opensource.org/licenses/AAL
|
|
|
|
*/
|
2021-03-08 15:19:45 +01:00
|
|
|
|
|
|
|
namespace App\Http\Requests\BillingSubscription;
|
|
|
|
|
|
|
|
use App\Http\Requests\Request;
|
2021-03-09 14:29:57 +01:00
|
|
|
use App\Models\BillingSubscription;
|
2021-03-08 15:19:45 +01:00
|
|
|
|
|
|
|
class CreateBillingSubscriptionRequest extends Request
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Determine if the user is authorized to make this request.
|
|
|
|
*
|
|
|
|
* @return bool
|
|
|
|
*/
|
|
|
|
public function authorize(): bool
|
|
|
|
{
|
2021-03-09 14:29:57 +01:00
|
|
|
return auth()->user()->can('create', BillingSubscription::class);
|
2021-03-08 15:19:45 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Get the validation rules that apply to the request.
|
|
|
|
*
|
|
|
|
* @return array
|
|
|
|
*/
|
|
|
|
public function rules()
|
|
|
|
{
|
|
|
|
return [
|
|
|
|
//
|
|
|
|
];
|
|
|
|
}
|
|
|
|
}
|