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)
|
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();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user