ldc-web/app/Http/Requests/EmailAddresses/StoreEmailAddressRequest.php
2022-06-15 12:07:34 +02:00

33 lines
709 B
PHP

<?php
namespace App\Http\Requests\EmailAddresses;
use Illuminate\Foundation\Http\FormRequest;
use Illuminate\Support\Facades\Auth;
class StoreEmailAddressRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return boolean
*/
public function authorize()
{
return Auth::check();
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return [
'account' => 'required|min:2|max:255',
'password' => 'required|max:255',
'domain_name_id' => 'required|exists:domain_names,id'
];
}
}