Skip to content

Commit

Permalink
Issue #1 possible fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ModestasV committed Nov 26, 2015
1 parent 7a61e8e commit 92d2f08
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"email": "[email protected]"
}
],
"version": "0.2.8",
"version": "0.2.9",
"require": {
"illuminate/html": "5.0.*@dev"
},
Expand Down
8 changes: 4 additions & 4 deletions src/Builders/ControllerBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -239,11 +239,11 @@ private function names()
*/
private function publish($template)
{
if (!file_exists(app_path('Http\Controllers\Admin'))) {
mkdir(app_path('Http\Controllers\Admin'));
chmod(app_path('Http\Controllers\Admin'), 0777);
if (!file_exists(app_path('Http/Controllers/Admin'))) {
mkdir(app_path('Http/Controllers/Admin'));
chmod(app_path('Http/Controllers/Admin'), 0777);
}
file_put_contents(app_path('Http\Controllers\Admin\\' . $this->fileName), $template);
file_put_contents(app_path('Http/Controllers/Admin/' . $this->fileName), $template);
}

}

0 comments on commit 92d2f08

Please sign in to comment.