app/Http/Controllers/HomeController.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()
    {
        $classes = Classes::orderBy('position')->get();
        return view('home.main', compact('classes'));
    }
public function index ( ) { $ classes = Classes :: orderBy ( 'position' ) -> get ( ) ; return view ( 'home.main' , compact ( 'classes' ) ) ; }
Display a listing of the resource.
Display a listing of the resource .