app/Http/Controllers/Admin/BodyPartController.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()
    {
        $bodyParts = BodyPart::orderBy('body_part')->get();
        return view('admin.body-parts.index', [
            'bodyParts' => $bodyParts
        ]);
    }
public function index ( ) { $ bodyParts = BodyPart :: orderBy ( 'body_part' ) -> get ( ) ; return view ( 'admin.body-parts.index' , [ 'bodyParts' => $ bodyParts ] ) ; }
Display a listing of the resource.
Display a listing of the resource .