Change DB tables (remove temperature) (add sensors and readings Models Controllers and migrations) (and respect reallationships)
This commit is contained in:
11
app/Http/Controllers/ReadingController.php
Normal file
11
app/Http/Controllers/ReadingController.php
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use App\Models\Reading;
|
||||
use Illuminate\Http\Request;
|
||||
|
||||
class ReadingController extends Controller
|
||||
{
|
||||
//
|
||||
}
|
@@ -2,10 +2,10 @@
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use App\Models\Temperature;
|
||||
use App\Models\Sensor;
|
||||
use Illuminate\Http\Request;
|
||||
|
||||
class TemperatureController extends Controller
|
||||
class SensorController extends Controller
|
||||
{
|
||||
/**
|
||||
* Display a listing of the resource.
|
Reference in New Issue
Block a user