for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Cortex\Fort\Http\Requests\Frontend;
use Rinvex\Support\Http\Requests\FormRequest;
use Cortex\Foundation\Exceptions\GenericException;
class RegistrationRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @throws \Cortex\Foundation\Exceptions\GenericException
* @return bool
*/
public function authorize()
if (! config('rinvex.fort.registration.enabled')) {
throw new GenericException(trans('cortex/fort::messages.register.disabled'));
}
return true;
* Get the validation rules that apply to the request.
* @return array
public function rules()
return [];