35 lines
604 B
PHP
35 lines
604 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers;
|
|
|
|
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,
|
|
]);
|
|
}
|
|
}
|