-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
31 changed files
with
431 additions
and
116 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
## Pass requests that don't refer directly to files in the filesystem to index.php | ||
location / { try_files $uri $uri/ /index.php?$query_string; } | ||
|
||
## Pass the PHP scripts to FastCGI server | ||
location ~ ^/index.php { | ||
## Write your FPM configuration here | ||
|
||
} | ||
|
||
## Whitelist | ||
location ~ ^/favicon\.ico { try_files $uri /index.php; } | ||
location ~ ^/sitemap\.xml { try_files $uri /index.php; } | ||
|
||
## Block all .dotfiles except well-known | ||
location ~ /\.(?!well-known).* { deny all; } | ||
|
||
### Let nginx return 404 if static file does not exists | ||
location ~ ^/assets/media { try_files $uri 404; } | ||
location ~ ^/storage/temp/public { try_files $uri 404; } | ||
|
||
location ~ ^/app/.*/assets { try_files $uri 404; } | ||
location ~ ^/app/.*/actions/.*/assets { try_files $uri 404; } | ||
location ~ ^/app/.*/dashboardwidgets/.*/assets { try_files $uri 404; } | ||
location ~ ^/app/.*/formwidgets/.*/assets { try_files $uri 404; } | ||
location ~ ^/app/.*/widgets/.*/assets { try_files $uri 404; } | ||
|
||
location ~ ^/extensions/.*/.*/assets { try_files $uri 404; } | ||
location ~ ^/extensions/.*/.*/actions/.*/assets { try_files $uri 404; } | ||
location ~ ^/extensions/.*/.*/dashboardwidgets/.*/assets { try_files $uri 404; } | ||
location ~ ^/extensions/.*/.*/formwidgets/.*/assets { try_files $uri 404; } | ||
location ~ ^/extensions/.*/.*/widgets/.*/assets { try_files $uri 404; } | ||
|
||
location ~ ^/themes/.*/assets { try_files $uri 404; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
app/admin/database/migrations/2021_07_20_010000_add_columns_default_value.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?php | ||
|
||
namespace Admin\Database\Migrations; | ||
|
||
use Illuminate\Database\Migrations\Migration; | ||
use Illuminate\Database\Schema\Blueprint; | ||
use Illuminate\Support\Facades\Schema; | ||
|
||
class AddColumnsDefaultValue extends Migration | ||
{ | ||
public function up() | ||
{ | ||
Schema::table('locationables', function (Blueprint $table) { | ||
$table->text('options')->change()->nullable(); | ||
}); | ||
|
||
Schema::table('menu_item_options', function (Blueprint $table) { | ||
$table->boolean('required')->change()->default(0); | ||
}); | ||
} | ||
|
||
public function down() | ||
{ | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.