%PDF- %PDF-
Direktori : /var/www/pjc/app/Http/Controllers/ |
Current File : /var/www/pjc/app/Http/Controllers/Utenti.php |
<?php namespace App\Http\Controllers; use Illuminate\Support\Facades\Response; namespace App\Http\Controllers; use DB; use App\Http\Controllers\Controller; use App\Models\User; use Illuminate\Support\Facades\Session; use Illuminate\Support\Facades\Redirect; use Illuminate\Support\Facades\Input; use Illuminate\Http\Request; class Utenti extends Controller { /* |-------------------------------------------------------------------------- | Default Home Controller |-------------------------------------------------------------------------- | | You may wish to use controllers instead of, or in addition to, Closure | based routes. That's great! Here is an example controller method to | get you started. To route to this controller, just add the route: | | Route::get('/', 'HomeController@showWelcome'); | */ public function index() { $utenti = DB::table('utenti')->get(); return view('gestioneOre.utentik')->withUtenti($utenti); } public function update() { DB::table('utenti') ->where('id', Input::Get('id')) ->update(Input::all()); return Redirect::action('Utenti@index'); } }