Skip to content

Commit

Permalink
Merge pull request #10 from grossvogel/laravel-version-bump
Browse files Browse the repository at this point in the history
Work with Laravel up to 5.4
  • Loading branch information
phirschybar committed Jun 6, 2017
2 parents 28faf16 + 1e8ca9b commit 1441f0a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
"require": {
"php": ">=5.4.0",
"illuminate/support": "~5.0",
"laravelcollective/html": "5.2.*",
"laracasts/generators": "1.1.3"
"laravelcollective/html": ">=5.2.0",
"laracasts/generators": "dev-master"
},
"autoload": {
"classmap": [
Expand Down
4 changes: 2 additions & 2 deletions src/Lifeboy/Station/Filters/Session.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ static function hydrate(){

$user_id = Auth::user()->id;
$user = User::find($user_id);
$group_names = $user->groups->lists('name');
$group_names = $user->groups->pluck('name');
$primary_group = $group_names->first();
$app_groups = StationConfig::app('user_groups');
$starting_panel = $app_groups[$primary_group]['starting_panel'];
Expand All @@ -58,4 +58,4 @@ static function hydrate(){
'gravatar_hash' => md5($user['email'])
));
}
}
}
4 changes: 2 additions & 2 deletions src/Lifeboy/Station/StationServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function register()
*/
protected function registerStationBuild()
{
$this->app['station:build'] = $this->app->share(function($app)
$this->app->singleton('station:build', function($app)
{
//$cache = new Cache($app['files']);
//$generator = new Generators\ModelGenerator($app['files'], $cache);
Expand All @@ -70,4 +70,4 @@ public function provides()
return array();
}

}
}
2 changes: 1 addition & 1 deletion src/views/layouts/form.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@
@if($element_info['type']=='multiselect' && isset($foreign_data[$element_name]))
{!! Form::select($element_name.'[]',
$foreign_data[$element_name],
(old($element_name) || !isset($passed_model)) ? null : $passed_model->$element_name->lists('id')->toArray(),
(old($element_name) || !isset($passed_model)) ? null : $passed_model->$element_name->pluck('id')->toArray(),
['multiple' => 'multiple','class'=>'chosen-select', 'style' => 'width: 400px', 'id' => $id, 'data-placeholder' => 'Please choose...']) !!}
@endif

Expand Down

0 comments on commit 1441f0a

Please sign in to comment.