Commit iniziale
This commit is contained in:
23
app/Http/Controllers/ContatoreGasController.php
Normal file
23
app/Http/Controllers/ContatoreGasController.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use App\Models\contatoreGas;
|
||||
|
||||
|
||||
class ContatoreGasController extends Controller
|
||||
{
|
||||
public static function listLettureGas(){
|
||||
$letture=ContatoreGas::getList();
|
||||
return view('components.chartGas',['lettureGas'=>$letture]);
|
||||
}
|
||||
|
||||
public static function insLettureGas(Request $request)
|
||||
{
|
||||
ContatoreGas::inserisci($request);
|
||||
$letture=ContatoreGas::getList();
|
||||
return view('components.chartGas',['lettureGas'=>$letture]);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user