app/Http/Controllers/ServiceRenewalsController.php
/**
     * Store a newly created resource in storage.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Illuminate\Http\Response
     */
Store a newly created resource in storage.
Store a newly created resource in storage .
public function store(ServiceRenewalRequest $request, Service $service)
    {
        $service->renewals()->create($request->validated());
        return [
            'message' => __('messages.renewal_created_status')
        ];
    }
public function store ( ServiceRenewalRequest $ request , Service $ service ) { $ service -> renewals ( ) -> create ( $ request -> validated ( ) ) ; return [ 'message' => __ ( 'messages.renewal_created_status' ) ] ; }
Store a newly created resource in storage.
Store a newly created resource in storage .