app/Http/Controllers/InvoicesController.php
/**
     * Show the form for editing the specified resource.
     *
     * @param  \App\invoices  $invoices
     * @return \Illuminate\Http\Response
     */
Show the form for editing the specified resource.
Show the form for editing the specified resource .
public function edit( $id)
    {
        $invoice = invoices::where('id' , $id)->first();
        $sections = sections::all();
        return view('invoices.edit_invoice', compact('invoice','sections'));
    }
public function edit ( $ id ) { $ invoice = invoices :: where ( 'id' , $ id ) -> first ( ) ; $ sections = sections :: all ( ) ; return view ( 'invoices.edit_invoice' , compact ( 'invoice' , 'sections' ) ) ; }
Show the form for editing the specified resource.
Show the form for editing the specified resource .