Skip to content

Commit 9f8d334

Browse files
authored
Merge pull request #1 from QuentinBontemps/master
Add compatibility with laravel 5.1
2 parents 4a6246a + 1a4c931 commit 9f8d334

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

composer.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,10 @@
2020
"autoload": {
2121
"psr-4": {
2222
"HighSolutions\\LangImportExport\\": "src/"
23-
}
23+
},
24+
"files": [
25+
"src/Support/helpers.php"
26+
]
2427
},
2528
"extra": {
2629
"component": "package",

src/Support/helpers.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?php
2+
3+
if ( ! function_exists('resource_path'))
4+
{
5+
/**
6+
* Get the path to the resources folder.
7+
*
8+
* @param string $path
9+
* @return string
10+
*/
11+
function resource_path($path = '')
12+
{
13+
return \Illuminate\Support\Facades\App::basePath('resources' . ($path ? DIRECTORY_SEPARATOR . $path : $path));
14+
}
15+
}

0 commit comments

Comments
 (0)