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)));
    }
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)));
    }
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 ) ) ) ; }
And the Rails 'create' action is named 'store' in Laravel.
And the Rails create action is named store in Laravel .