wstepna walidacja tworzenia jednostki
This commit is contained in:
parent
3e168bc3a5
commit
c633230352
@ -20,6 +20,16 @@ class fireStationController extends Controller
|
|||||||
public function store()
|
public function store()
|
||||||
{
|
{
|
||||||
$this->validate(request(),[
|
$this->validate(request(),[
|
||||||
|
'name' => 'required|min:3|max:45',
|
||||||
|
'number' => 'required|numeric',
|
||||||
|
'postOffice' => 'required|min:3|max:45',
|
||||||
|
'zipCode' => 'required|digits:5',
|
||||||
|
'address' => 'required|min:3|max:45',
|
||||||
|
'KRS' => 'required|digits:10',
|
||||||
|
'NIP' => 'required|digits:10',
|
||||||
|
'phoneNumber' => 'required|digits:11',
|
||||||
|
'email' => 'required|email|unique:firestations',
|
||||||
|
|
||||||
|
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user