Skip to content

Commit

Permalink
fix bug with symbolic links
Browse files Browse the repository at this point in the history
  • Loading branch information
melihovv committed Aug 4, 2017
1 parent dd74557 commit dc363c6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/LaravelLogViewer/LaravelLogViewer.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ class LaravelLogViewer
*/
public function __construct($baseDir, $maxFileSize)
{
$this->baseDir = $baseDir;
$this->currentDir = $baseDir;
$this->baseDir = realpath($baseDir);
$this->currentDir = $this->baseDir;
$this->maxFileSize = $maxFileSize;
}

Expand Down
2 changes: 1 addition & 1 deletion tests/LaravelLogViewerConfigTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@ protected function getEnvironmentSetUp($app)

public function testItSetsBaseDirToDefaultLaravelLogsDir()
{
$this->assertEquals(storage_path('logs'), \LogViewer::getBaseDirectory());
$this->assertEquals(realpath(storage_path('logs')), \LogViewer::getBaseDirectory());
}
}

0 comments on commit dc363c6

Please sign in to comment.