Skip to content

Commit 76e6da0

Browse files
authored
Merge pull request #399 from RezaAb/master
fix some bugs
2 parents 674a03a + e3ae8db commit 76e6da0

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

src/Serverfireteam/Panel/Commands/PanelCommand.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
use Illuminate\Console\Command;
44
use Symfony\Component\Console\Input\InputOption;
55
use Symfony\Component\Console\Input\InputArgument;
6+
use Illuminate\Support\Facades\File;
67

78
class PanelCommand extends Command {
89

@@ -62,6 +63,12 @@ public function handle()
6263
$this->call('migrate', array('--path' => 'vendor/serverfireteam/panel/src/database/migrations'));
6364

6465
$this->call('db:seed', array('--class' => '\Serverfireteam\Panel\LinkSeeder'));
66+
67+
//will use for elfinder package
68+
$path = public_path().'/files/';
69+
if(!File::isDirectory($path)){
70+
File::makeDirectory($path, 0775, true, true);
71+
}
6572
}
6673

6774
/**

src/views/master.blade.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@
2626

2727
{!! Rapyd::styles() !!}
2828

29+
@yield('style')
30+
2931
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
3032
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
3133
<!--[if lt IE 9]>
@@ -70,6 +72,8 @@
7072

7173
{!! Rapyd::scripts() !!}
7274

75+
@yield('script')
76+
7377
</body>
7478

7579
</html>

0 commit comments

Comments
 (0)