app/Http/Controllers/Admin/ExerciseCategoryController.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()
    {
        $categories = ExerciseCategory::orderBy('category_name')->get();
        return view('admin.exercise-categories.index', [
            'categories' => $categories
        ]);
    }
public function index ( ) { $ categories = ExerciseCategory :: orderBy ( 'category_name' ) -> get ( ) ; return view ( 'admin.exercise-categories.index' , [ 'categories' => $ categories ] ) ; }
Display a listing of the resource.
Display a listing of the resource .