diff --git a/src/commands/InstallCommand.php b/src/commands/InstallCommand.php index a357c5a..df7e42b 100644 --- a/src/commands/InstallCommand.php +++ b/src/commands/InstallCommand.php @@ -43,6 +43,15 @@ public function fire() { $this->info('## Syntara Install ##'); + // publish sentry config + $this->call('config:publish', array('package' => 'cartalyst/sentry' ) ); + + // publish syntara config + $this->call('config:publish', array('package' => 'mrjuliuss/syntara' ) ); + + // publish syntara assets + $this->call('asset:publish', array('package' => 'mrjuliuss/syntara' ) ); + // run migrations $this->call('migrate', array('--env' => $this->option('env'), '--package' => 'cartalyst/sentry' ) ); $this->call('migrate', array('--env' => $this->option('env'), '--package' => 'mrjuliuss/syntara' ) ); @@ -64,14 +73,5 @@ public function fire() { $this->info('"Admin" group already exists'); } - - // publish sentry config - $this->call('config:publish', array('package' => 'cartalyst/sentry' ) ); - - // publish syntara config - $this->call('config:publish', array('package' => 'mrjuliuss/syntara' ) ); - - // publish syntara assets - $this->call('asset:publish', array('package' => 'mrjuliuss/syntara' ) ); } } \ No newline at end of file diff --git a/src/models/Permissions/PermissionProvider.php b/src/models/Permissions/PermissionProvider.php index b17c6dd..66efdfa 100644 --- a/src/models/Permissions/PermissionProvider.php +++ b/src/models/Permissions/PermissionProvider.php @@ -17,7 +17,7 @@ class PermissionProvider */ public function createPermission($attributes) { - $validator = Validator::make($attributes, Config::get('syntara::rules.permissions.create')); + $validator = Validator::make($attributes, Config::get('syntara::validator.permissions.create')); if(!$validator->fails()) {