mirror of
https://github.com/cp6/my-idlers.git
synced 2024-11-16 23:42:32 +01:00
Added max length validation for OS, Provider and Location
Added max length validation for OS, Provider and Location
This commit is contained in:
parent
f6dee0d256
commit
74691a6ed8
@ -24,7 +24,7 @@ class LocationsController extends Controller
|
||||
public function store(Request $request)
|
||||
{
|
||||
$request->validate([
|
||||
'location_name' => 'required|string|min:2'
|
||||
'location_name' => 'required|string|min:2|max:255'
|
||||
]);
|
||||
|
||||
Locations::create([
|
||||
|
@ -22,7 +22,7 @@ class OsController extends Controller
|
||||
public function store(Request $request)
|
||||
{
|
||||
$request->validate([
|
||||
'os_name' => 'required|string|min:2'
|
||||
'os_name' => 'required|string|min:2|max:255'
|
||||
]);
|
||||
|
||||
OS::create([
|
||||
|
@ -24,7 +24,7 @@ class ProvidersController extends Controller
|
||||
public function store(Request $request)
|
||||
{
|
||||
$request->validate([
|
||||
'provider_name' => 'required|string|min:2'
|
||||
'provider_name' => 'required|string|min:2|max:255'
|
||||
]);
|
||||
|
||||
Providers::create([
|
||||
|
Loading…
Reference in New Issue
Block a user