app/Http/Controllers/CustomerManageRenewalsController.php
/**
     * Show the form for editing the specified resource.
     *
     * @param  \App\Customer  $customer
     * @return \Illuminate\Http\Response
     */
Show the form for editing the specified resource.
Show the form for editing the specified resource .
public function edit(Customer $customer, $token)
    {
        $this->authorize('manageRenewal', [$customer, $token]);
        $customer->load([
            'services' => function($q){
                $q->whereHas('renewalsExpiring')->with('serviceType', 'renewalsExpiring');
            }
        ]);
        return view('renewalsReminder.reminder', compact('customer', 'token'));
    }
public function edit ( Customer $ customer , $ token ) { $ this -> authorize ( 'manageRenewal' , [ $ customer , $ token ] ) ; $ customer -> load ( [ 'services' => function ( $ q ) { $ q -> whereHas ( 'renewalsExpiring' ) -> with ( 'serviceType' , 'renewalsExpiring' ) ; } ] ) ; return view ( 'renewalsReminder.reminder' , compact ( 'customer' , 'token' ) ) ; }
Show the form for editing the specified resource.
Show the form for editing the specified resource .