37 lines
632 B
PHP
37 lines
632 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
namespace App\Http\Controllers;
|
||
|
|
|
||
|
|
use Illuminate\Http\Request;
|
||
|
|
use App\Campagne;
|
||
|
|
use Barryvdh\Debugbar\Facade as Debugbar;
|
||
|
|
|
||
|
|
class HomeController extends Controller
|
||
|
|
{
|
||
|
|
/**
|
||
|
|
* Create a new controller instance.
|
||
|
|
*
|
||
|
|
* @return void
|
||
|
|
*/
|
||
|
|
public function __construct()
|
||
|
|
{
|
||
|
|
//$this->middleware('auth');
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Show the application dashboard.
|
||
|
|
*
|
||
|
|
* @return \Illuminate\Http\Response
|
||
|
|
*/
|
||
|
|
public function index()
|
||
|
|
{
|
||
|
|
$test = Campagne::find(102);
|
||
|
|
|
||
|
|
Debugbar::info($test);
|
||
|
|
|
||
|
|
return view('home')->with([
|
||
|
|
'test' => $test,
|
||
|
|
]);
|
||
|
|
}
|
||
|
|
}
|