app/Http/Controllers/HomeController.php
/**
     * Show the application dashboard.
     *
     * @return \Illuminate\Http\Response
     */
Show the application dashboard.
@return \Illuminate\Http\Response
Show the application dashboard . @return \ Illuminate \ Http \ Response
public function index()
    {
        $users = User::orderBy('created_at', 'DESC')->get();
        $user = auth()->user();
        $domaines = Domaine::orderBy('nom', 'ASC')->get();
        return view('home',['utilisateurs' => $users, 'current_user' => $user, 'domaines' => $domaines]);
    }
public function index ( ) { $ users = User :: orderBy ( 'created_at' , 'DESC' ) -> get ( ) ; $ user = auth ( ) -> user ( ) ; $ domaines = Domaine :: orderBy ( 'nom' , 'ASC' ) -> get ( ) ; return view ( 'home' , [ 'utilisateurs' => $ users , 'current_user' => $ user , 'domaines' => $ domaines ] ) ; }
Show the application dashboard.
Show the application dashboard .