app/Http/Controllers/ComptesController.php
/**
     * Display a listing of the resource.
     *
     * @return \Illuminate\Http\Response
     */
Display a listing of the resource.
@return \Illuminate\Http\Response
Display a listing of the resource . @return \ Illuminate \ Http \ Response
public function index()
    {
        $comptes = Compte::where('statut', 0)->get()->load("structure.grille", "user");
        return view('comptes.index', compact('comptes'));
    }
public function index ( ) { $ comptes = Compte :: where ( 'statut' , 0 ) -> get ( ) -> load ( " structure.grille " , " user " ) ; return view ( 'comptes.index' , compact ( 'comptes' ) ) ; }
Display a listing of the resource.
Display a listing of the resource .