Пример #1
0
 public function create(ResourceInterface $listener)
 {
     $customer = new CustomerModel();
     $data = ['form' => $this->presenter->form($customer)];
     return $listener->showForm($data);
 }
Пример #2
0
 public function destroy(ResourceListener $listener, $brandId)
 {
     $eloquent = BrandModel::findOrFail($brandId);
     $model->delete();
     return $listener->successfulProcess();
 }