app/Http/Controllers/Laundry/LaundriesController.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 createCategory($id)
    {
        $laundry = Laundry::findOrFail($id);
        $user = $laundry->user;
        return view('partner.category.create')->with([
            'laundry' => $laundry,
            'user' => $user
        ]);
    }
public function createCategory ( $ id ) { $ laundry = Laundry :: findOrFail ( $ id ) ; $ user = $ laundry -> user ; return view ( 'partner.category.create' ) -> with ( [ 'laundry' => $ laundry , 'user' => $ user ] ) ; }
Show the form for creating a new resource.
Show the form for creating a new resource .