1
0
forked from s421507/eOSP2

wstepna walidacja tworzenia jednostki

This commit is contained in:
Krzysztof Strzelecki 2019-09-25 15:46:57 +02:00
parent 3e168bc3a5
commit c633230352

View File

@ -20,6 +20,16 @@ class fireStationController extends Controller
public function store()
{
$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',
]);