Skip to content

Commit

Permalink
resolve issue serverfireteam#245
Browse files Browse the repository at this point in the history
  • Loading branch information
eafshary committed May 11, 2017
1 parent 9f8797c commit 38e0db9
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Serverfireteam/Panel/Commands/CrudCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public function fire()

Link::create([
'url' => $crudName,
'display' => $crudName . 's',
'display' => str_plural($crudName),
'show_menu' => true,
]);

Expand Down
13 changes: 13 additions & 0 deletions src/Serverfireteam/Panel/PanelServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ public function boot()
$this->publishes([
__DIR__.'/../../views' => base_path('resources/views/vendor/panelViews'),
]);
$this->publishMigrations();

include __DIR__."/../../routes.php";

Expand All @@ -145,4 +146,16 @@ public function provides()
{
return array();
}


private function publishMigrations()
{
$path = $this->getMigrationsPath();
$this->publishes([$path => database_path('migrations')], 'migrations');
}

private function getMigrationsPath()
{
return __DIR__ . '/../../database/migrations/';
}
}

0 comments on commit 38e0db9

Please sign in to comment.