config/app/Http/Controllers/SupplierController.php
/**
     * Show the form for editing the specified resource.
     *
     * @param  \App\Models\Supplier  $supplier
     * @return \Illuminate\Http\Response
     */
Show the form for editing the specified resource.
Show the form for editing the specified resource .
public function edit(Supplier $supplier,$slug)
    {
        $suppliers = Supplier::where('supplier_status',1)
                    ->where('supplier_slug',$slug)->firstOrFail();
        return view('admin.suppliers.edit',compact('suppliers'));
    }
public function edit ( Supplier $ supplier , $ slug ) { $ suppliers = Supplier :: where ( 'supplier_status' , 1 ) -> where ( 'supplier_slug' , $ slug ) -> firstOrFail ( ) ; return view ( 'admin.suppliers.edit' , compact ( 'suppliers' ) ) ; }
Show the form for editing the specified resource.
Show the form for editing the specified resource .