/** * Remove the specified resource from storage. * * @param Brand $brand * * @return \Illuminate\Http\RedirectResponse */ public function destroy(Brand $brand) { if ($brand->canDelete()) { $brand->delete(); } else { return Redirect::back()->with('message', "Can't delete an active and/or system brand."); } return Redirect::route('admin.brands.index')->with('message', 'Brand has been deleted.'); }