1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-30 13:17:13 +02:00
invoiceninja/app/Http/Requests/ClientPortal/Subscriptions/ShowPlanSwitchRequest.php
Benjamin Beganović 969d9f03dc wip
2021-04-07 18:08:26 +02:00

35 lines
643 B
PHP

<?php
namespace App\Http\Requests\ClientPortal\Subscriptions;
use App\Models\Subscription;
use App\Utils\Traits\MakesHash;
use Illuminate\Foundation\Http\FormRequest;
class ShowPlanSwitchRequest extends FormRequest
{
use MakesHash;
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return (bool)$this->subscription->allow_plan_changes;
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return [
//
];
}
}