app/Http/Controllers/Admin/MuscleController.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()
    {
        $muscles = Muscle::with('partOfBody')->get();
        return view('admin.muscles.index', [
            'muscles' => $muscles
        ]);
    }
public function index ( ) { $ muscles = Muscle :: with ( 'partOfBody' ) -> get ( ) ; return view ( 'admin.muscles.index' , [ 'muscles' => $ muscles ] ) ; }
Display a listing of the resource.
Display a listing of the resource .