app/Http/Controllers/Admin/ExerciseController.php
/**
     * Show the form for creating a new resource.
     *
     * @return \Illuminate\Http\Response
     */
Show the form for creating a new resource.
@return \Illuminate\Http\Response
Show the form for creating a new resource . @return \ Illuminate \ Http \ Response
public function create()
    {
        $bodyParts = BodyPart::where('active', 1)->orderBy('body_part')->get();
        $categories = ExerciseCategory::orderBy('category_name')->get();
        return view('admin.exercises.create', [
            'bodyParts' => $bodyParts,
            'categories' => $categories
        ]);
    }
public function create ( ) { $ bodyParts = BodyPart :: where ( 'active' , 1 ) -> orderBy ( 'body_part' ) -> get ( ) ; $ categories = ExerciseCategory :: orderBy ( 'category_name' ) -> get ( ) ; return view ( 'admin.exercises.create' , [ 'bodyParts' => $ bodyParts , 'categories' => $ categories ] ) ; }
Show the form for creating a new resource.
Show the form for creating a new resource .