Default controllers didn't generate correctly.
This commit is contained in:
parent
e3ba909d39
commit
5607082e31
1 changed files with 1 additions and 4 deletions
|
@ -380,15 +380,12 @@ if [[ ( $2 == "-i" ) || ( $2 == "-install" ) ]]; then
|
|||
touch app/Http/Controllers/Admin/Extensions/$identifier/$ADMINCONTROLLER_NAME;
|
||||
|
||||
if [[ $admin_controller == "" ]]; then
|
||||
touch app/Http/Controllers/Admin/Extensions/$identifier/$ADMINCONTROLLER_NAME;
|
||||
echo $ADMINCONTROLLER_RESULT > app/Http/Controllers/Admin/Extensions/$identifier/$ADMINCONTROLLER_NAME;
|
||||
else
|
||||
cp .blueprint/tmp/$n/$admin_controller app/Http/Controllers/Admin/Extensions/$identifier/$ADMINCONTROLLER_NAME;
|
||||
fi;
|
||||
|
||||
if [[ $admin_controller != "" ]]; then
|
||||
cp .blueprint/tmp/$n/$admin_controller app/Http/Controllers/Admin/Extensions/$identifier/${identifier}ExtensionController.php;
|
||||
fi;
|
||||
|
||||
echo $ADMINROUTE_RESULT >> routes/admin.php;
|
||||
|
||||
sed -i "s~<!--␀replace␀-->~$ADMINBUTTON_RESULT\n<!--␀replace␀-->~g" resources/views/admin/extensions.blade.php;
|
||||
|
|
Loading…
Reference in a new issue