abschlussprojekt-device-man.../device-app/app/Http/Controllers/DeviceController.php
2023-03-26 11:32:54 +02:00

31 lines
502 B
PHP

<?php
namespace App\Http\Controllers;
use App\Models\Device;
use Illuminate\Http\Request;
class DeviceController extends Controller
{
//
public function index()
{
return view('devices.index', [
'devices' => Device::all()
]);
}
public function create(){
return view('devices.create', [
]);
}
public function show(Device $device)
{
return view('devices.show', [
'device' => $device
]);
}
}