Skip to content

Commit

Permalink
Added chmod to App\Http\Controllers\Admin directory after it is being…
Browse files Browse the repository at this point in the history
… created.
  • Loading branch information
ModestasV committed Nov 26, 2015
1 parent 1bc1529 commit 0462a77
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
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.6",
"version": "0.2.7",
"require": {
"illuminate/html": "5.0.*@dev"
},
Expand Down
1 change: 1 addition & 0 deletions src/Builders/ControllerBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@ 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);
}
file_put_contents(app_path('Http\Controllers\Admin\\' . $this->fileName), $template);
}
Expand Down

0 comments on commit 0462a77

Please sign in to comment.