1
0
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:
cp6 2022-11-08 10:39:05 +11:00
parent f6dee0d256
commit 74691a6ed8
3 changed files with 3 additions and 3 deletions

View File

@ -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([

View File

@ -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([

View File

@ -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([