Esempio n. 1
0
 public function index(BrandListener $listener)
 {
     $eloquent = BrandModel::orderBy('name', 'ASC')->paginate();
     $data = ['brands' => $eloquent];
     return $listener->showAllBrands($data);
 }
Esempio n. 2
0
 public function destroy(ResourceListener $listener, $brandId)
 {
     $eloquent = BrandModel::findOrFail($brandId);
     $model->delete();
     return $listener->successfulProcess();
 }