Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel update model from request

public function update(Request $request, $id)
    {
        $supplier = SupplierModel::findOrFail($id);
        $supplier->update($request->all());
        return redirect(route('admin.suppliers.index'))->with('message', 'Поставщик успешно обновлен');
    }
Source by laravel.com #
 
PREVIOUS NEXT
Tagged: #laravel #update #model #request
ADD COMMENT
Topic
Name
5+2 =