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)
|
public function store(Request $request)
|
||||||
{
|
{
|
||||||
$request->validate([
|
$request->validate([
|
||||||
'location_name' => 'required|string|min:2'
|
'location_name' => 'required|string|min:2|max:255'
|
||||||
]);
|
]);
|
||||||
|
|
||||||
Locations::create([
|
Locations::create([
|
||||||
|
|
|
@ -22,7 +22,7 @@ class OsController extends Controller
|
||||||
public function store(Request $request)
|
public function store(Request $request)
|
||||||
{
|
{
|
||||||
$request->validate([
|
$request->validate([
|
||||||
'os_name' => 'required|string|min:2'
|
'os_name' => 'required|string|min:2|max:255'
|
||||||
]);
|
]);
|
||||||
|
|
||||||
OS::create([
|
OS::create([
|
||||||
|
|
|
@ -24,7 +24,7 @@ class ProvidersController extends Controller
|
||||||
public function store(Request $request)
|
public function store(Request $request)
|
||||||
{
|
{
|
||||||
$request->validate([
|
$request->validate([
|
||||||
'provider_name' => 'required|string|min:2'
|
'provider_name' => 'required|string|min:2|max:255'
|
||||||
]);
|
]);
|
||||||
|
|
||||||
Providers::create([
|
Providers::create([
|
||||||
|
|
Loading…
Reference in New Issue
Block a user