Skip to content

Commit

Permalink
laravel 5.1 support
Browse files Browse the repository at this point in the history
  • Loading branch information
themsaid committed Apr 4, 2016
1 parent 605b767 commit 629e49f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/langman.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
* usually located in resources/lang but you may change that.
*/

'path' => resource_path('lang'),
'path' => realpath(base_path('resources/lang')),
];
2 changes: 1 addition & 1 deletion src/Manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ public function writeFile($filePath, array $translations)
public function getFileContent($filePath, $createIfNotExists = false)
{
if ($createIfNotExists && ! $this->disk->exists($filePath)) {
if (! $this->disk->exists($directory = $this->disk->dirname($filePath))) {
if (! $this->disk->exists($directory = dirname($filePath))) {
mkdir($directory, true);
}

Expand Down

0 comments on commit 629e49f

Please sign in to comment.