Skip to content

Commit

Permalink
Fixing Laravel 5 checking
Browse files Browse the repository at this point in the history
  • Loading branch information
RobotChief committed Feb 1, 2015
1 parent 81d9b2f commit dfbab51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Jenssegers/Date/DateServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class DateServiceProvider extends ServiceProvider {
public function boot()
{
// Laravel 5 resource registration
if (starts_with($this->app->version(), '5'))
if (method_exists($this->app, 'version') && starts_with($this->app->version(), '5'))
{
$this->loadTranslationsFrom($this->app->basePath() . '/vendor/jenssegers/date/src/lang', 'date');
}
Expand Down

0 comments on commit dfbab51

Please sign in to comment.