public static function delete($id)
 {
     if (!Request::is_admin()) {
         Response::redirect('');
     }
     # perform the categories deletion
     Categories::delete($id);
     # push flash-message
     Session::push('flash-message', 'That category has deleted successfuly!');
     # redirect to main page
     Response::redirect('categories');
 }
 /**
  * @param \App\Models\Categories $category
  * @Authorized
  * @UserRole(0,1)
  */
 public function delete($id, Categories $category)
 {
     $category->delete($id);
     $this->redirect->to('/products')->go();
 }