original_string: protected function getCreateActions()
      {
          // We keep the 'new' option to match CanCan API
          $optionNew = array_key_exists('new', $this->options) ? $this->options['new'] : [];
          $optionCreate = array_key_exists('create', $this->options) ? $this->options['create'] : [];
          $options = array_merge((array) $optionNew, (array) $optionCreate);
          return array_unique(array_flatten(array_merge(['new', 'create', 'store'], $options)));
      }
code: protected function getCreateActions()
      {
          // We keep the 'new' option to match CanCan API
          $optionNew = array_key_exists('new', $this->options) ? $this->options['new'] : [];
          $optionCreate = array_key_exists('create', $this->options) ? $this->options['create'] : [];
          $options = array_merge((array) $optionNew, (array) $optionCreate);
          return array_unique(array_flatten(array_merge(['new', 'create', 'store'], $options)));
      }
code_tokens: protected function getCreateActions ( ) { // We keep the 'new' option to match CanCan API $ optionNew = array_key_exists ( 'new' , $ this -> options ) ? $ this -> options [ 'new' ] : [ ] ; $ optionCreate = array_key_exists ( 'create' , $ this -> options ) ? $ this -> options [ 'create' ] : [ ] ; $ options = array_merge ( ( array ) $ optionNew , ( array ) $ optionCreate ) ; return array_unique ( array_flatten ( array_merge ( [ 'new' , 'create' , 'store' ] , $ options ) ) ) ; }
docstring: And the Rails 'create' action is named 'store' in Laravel.
docstring_tokens: And the Rails create action is named store in Laravel .