Skip to content

Commit

Permalink
Update helpers.php
Browse files Browse the repository at this point in the history
To make the helper work correct in the latest laravel
  • Loading branch information
batenburg authored Mar 14, 2018
1 parent f118c78 commit 6bac44f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Support/helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
*/
function resource_path($path = '')
{
return \Illuminate\Support\Facades\App::basePath() . DIRECTORY_SEPARATOR . 'resources' . ($path ? DIRECTORY_SEPARATOR . $path : $path);
return app()->basePath() . DIRECTORY_SEPARATOR . 'resources' . ($path ? DIRECTORY_SEPARATOR . $path : $path);
}
}
}

0 comments on commit 6bac44f

Please sign in to comment.