-
Notifications
You must be signed in to change notification settings - Fork 379
Laravel initial settings
ucan-lab edited this page Mar 8, 2022
·
5 revisions
// Add after $app instance creation
/*
|--------------------------------------------------------------------------
| Set Storage Path
|--------------------------------------------------------------------------
|
| This script allows you to override the default storage location used by
| the application. You may set the APP_STORAGE environment variable
| in your .env file, if not set the default location will be used
|
*/
$app->useStoragePath(env('APP_STORAGE', base_path() . '/storage'));
# Edit
LOG_CHANNEL=stderr
SESSION_DRIVER=cookie
# Add
APP_SERVICES_CACHE=/tmp/services.php
APP_PACKAGES_CACHE=/tmp/packages.php
APP_CONFIG_CACHE=/tmp/config.php
APP_ROUTES_CACHE=/tmp/routes.php
APP_EVENTS_CACHE=/tmp/events.php
APP_STORAGE=/tmp
VIEW_COMPILED_PATH=/tmp
[
'timezone' => 'Asia/Tokyo',
'locale' => 'ja',
'fallback_locale' => 'ja',
'faker_locale' => 'ja_JP',
],
[
'connections' => [
'mysql' => [
'charset' => 'utf8mb4',
'collation' => 'utf8mb4_ja_0900_as_cs_ks',
],
],
],