forked from s421507/eOSP2
Merge branch 'master' of https://git.wmi.amu.edu.pl/s421507/eOSP2
This commit is contained in:
commit
5e3f2b663d
@ -19,8 +19,8 @@ class RegistrationController extends Controller
|
||||
{
|
||||
$this->validate(request(), [
|
||||
|
||||
'name' => 'required|min:2|max:45|regex:/^[\p{L}\040\x27-]+$/',
|
||||
'surname' => 'required|min:2|max:45|regex:/^[\p{L}\040\x27-]+$/',
|
||||
'name' => 'required|min:2|max:45|regex:/^[A-Za-zżźćńółęąśŻŹĆĄŚĘŁÓŃ\040\x27-]+$/',
|
||||
'surname' => 'required|min:2|max:45|regex:/^[A-Za-zżźćńółęąśŻŹĆĄŚĘŁÓŃ\040\x27-]+$/',
|
||||
'PESEL' => new Pesel,
|
||||
'phoneNumber' => 'required|digits:9',
|
||||
'email' => 'required|email|unique:users',
|
||||
|
@ -62,8 +62,8 @@ class fireFightersController extends Controller
|
||||
public function store(){
|
||||
$this->validate(request(), [
|
||||
|
||||
'name' =>'required|min:2|max:45|regex:/^[\p{L}\040\x27-]+$/',
|
||||
'surname' =>'required|min:2|max:45|regex:/^[\p{L}\040\x27-]+$/',
|
||||
'name' =>'required|min:2|max:45|regex:/^[A-Za-zżźćńółęąśŻŹĆĄŚĘŁÓŃ\040\x27-]+$/',
|
||||
'surname' =>'required|min:2|max:45|regex:/^[A-Za-zżźćńółęąśŻŹĆĄŚĘŁÓŃ\040\x27-]+$/',
|
||||
'PESEL' => new Pesel,
|
||||
'phoneNumber' => 'required|digits:9',
|
||||
'email' => 'required|email|unique:users',
|
||||
@ -111,8 +111,8 @@ class fireFightersController extends Controller
|
||||
|
||||
public function update(){
|
||||
$this->validate(request(), [
|
||||
'name' =>'required|min:2|max:45|regex:/^[\p{L}\040\x27-]+$/',
|
||||
'surname' =>'required|min:2|max:45|regex:/^[\p{L}\040\x27-]+$/',
|
||||
'name' =>'required|min:2|max:45|regex:/^[A-Za-zżźćńółęąśŻŹĆĄŚĘŁÓŃ\040\x27-]+$/',
|
||||
'surname' =>'required|min:2|max:45|regex:/^[A-Za-zżźćńółęąśŻŹĆĄŚĘŁÓŃ\040\x27-]+$/',
|
||||
'PESEL' => new Pesel,
|
||||
'phoneNumber' => 'required|digits:9',
|
||||
],
|
||||
|
@ -39,8 +39,8 @@ class userProfileController extends Controller
|
||||
|
||||
public function update(){
|
||||
$this->validate(request(), [
|
||||
'name' =>'required|min:2|max:45|regex:/^[\p{L}\040\x27-]+$/',
|
||||
'surname' =>'required|min:2|max:45|regex:/^[\p{L}\040\x27-]+$/',
|
||||
'name' =>'required|min:2|max:45|regex:/^[A-Za-zżźćńółęąśŻŹĆĄŚĘŁÓŃ\040\x27-]+$/',
|
||||
'surname' =>'required|min:2|max:45|regex:/^[A-Za-zżźćńółęąśŻŹĆĄŚĘŁÓŃ\040\x27-]+$/',
|
||||
'PESEL' => new Pesel,
|
||||
'phoneNumber' => 'required|digits:9',
|
||||
'email' => 'required|email|unique:users,email,'.auth()->user()->id, //wymagaj unikalnego adresu email ale pozwól na zachowanie starego adresu
|
||||
|
Loading…
Reference in New Issue
Block a user