app/Http/Controllers/LevelController.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()
    {
        $level = Level::orderBy('created_at')->get();
        return view('level.index',[
            'level' => $level
        ]);
    }
public function index ( ) { $ level = Level :: orderBy ( 'created_at' ) -> get ( ) ; return view ( 'level.index' , [ 'level' => $ level ] ) ; }
Display a listing of the resource.
Display a listing of the resource .