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:
parent
702eccf3d0
commit
adb589c60a
@ -21,7 +21,7 @@ class OsController extends Controller
|
||||
public function store(Request $request)
|
||||
{
|
||||
$request->validate([
|
||||
'name' => 'required|min:2'
|
||||
'os_name' => 'required|min:2'
|
||||
]);
|
||||
|
||||
OS::create([
|
||||
@ -32,9 +32,9 @@ class OsController extends Controller
|
||||
->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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user