Example #1
0
 /**
  * Get the applicable resource methods.
  * If it's an API route, the 'create' & 'edit' methods will be removed by default.
  *
  * @param  array  $defaults
  * @param  array  $options
  * @return array
  */
 protected function getResourceMethods($defaults, $options)
 {
     $methods = parent::getResourceMethods($defaults, $options);
     if ($this->isApiLastGroup()) {
         $methods = array_intersect($methods, $this->resourceApiDefaults);
     }
     return $methods;
 }