1
0
mirror of https://github.com/cp6/my-idlers.git synced 2024-11-16 23:42:32 +01:00

Updated OsController

Updated OsController
This commit is contained in:
cp6 2022-02-19 23:57:48 +11:00
parent 702eccf3d0
commit adb589c60a

View File

@ -21,7 +21,7 @@ class OsController extends Controller
public function store(Request $request) public function store(Request $request)
{ {
$request->validate([ $request->validate([
'name' => 'required|min:2' 'os_name' => 'required|min:2'
]); ]);
OS::create([ OS::create([
@ -32,9 +32,9 @@ class OsController extends Controller
->with('success', 'OS Created Successfully.'); ->with('success', 'OS Created Successfully.');
} }
public function destroy(OS $OS) public function destroy(OS $o)
{ {
$items = OS::find($OS->id); $items = OS::find($o->id);
$items->delete(); $items->delete();