Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Platform
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Platform
Commits
8d799eca
Unverified
Commit
8d799eca
authored
Sep 02, 2017
by
Nicolas Widart
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updating configurations
parent
cc5d446d
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
97 additions
and
91 deletions
+97
-91
database.php
config/database.php
+19
-37
filesystems.php
config/filesystems.php
+13
-17
mail.php
config/mail.php
+24
-13
queue.php
config/queue.php
+5
-19
services.php
config/services.php
+1
-1
session.php
config/session.php
+34
-3
view.php
config/view.php
+1
-1
No files found.
config/database.php
View file @
8d799eca
<?php
return
[
/*
|--------------------------------------------------------------------------
| PDO Fetch Style
|--------------------------------------------------------------------------
|
| By default, database results will be returned as instances of the PHP
| stdClass object; however, you may desire to retrieve records in an
| array format for simplicity. Here you can tweak the fetch style.
|
*/
'fetch'
=>
PDO
::
FETCH_CLASS
,
/*
|--------------------------------------------------------------------------
| Default Database Connection Name
...
...
@@ -25,9 +10,7 @@ return [
| you may use many connections at once using the Database library.
|
*/
'default'
=>
env
(
'DB_CONNECTION'
,
'mysql'
),
/*
|--------------------------------------------------------------------------
| Database Connections
...
...
@@ -43,32 +26,29 @@ return [
| choice installed on your machine before you begin development.
|
*/
'connections'
=>
[
'sqlite'
=>
[
'driver'
=>
'sqlite'
,
'database'
=>
env
(
'DB_DATABASE'
,
database_path
(
'database.sqlite'
)),
'prefix'
=>
''
,
],
'mysql'
=>
[
'driver'
=>
'mysql'
,
'host'
=>
env
(
'DB_HOST'
,
'
localhost
'
),
'host'
=>
env
(
'DB_HOST'
,
'
127.0.0.1
'
),
'port'
=>
env
(
'DB_PORT'
,
'3306'
),
'database'
=>
env
(
'DB_DATABASE'
,
'forge'
),
'username'
=>
env
(
'DB_USERNAME'
,
'forge'
),
'password'
=>
env
(
'DB_PASSWORD'
,
''
),
'charset'
=>
'utf8'
,
'collation'
=>
'utf8_unicode_ci'
,
'unix_socket'
=>
env
(
'DB_SOCKET'
,
''
),
'charset'
=>
'utf8mb4'
,
'collation'
=>
'utf8mb4_unicode_ci'
,
'prefix'
=>
''
,
'strict'
=>
fals
e
,
'strict'
=>
tru
e
,
'engine'
=>
null
,
],
'pgsql'
=>
[
'driver'
=>
'pgsql'
,
'host'
=>
env
(
'DB_HOST'
,
'
localhost
'
),
'host'
=>
env
(
'DB_HOST'
,
'
127.0.0.1
'
),
'port'
=>
env
(
'DB_PORT'
,
'5432'
),
'database'
=>
env
(
'DB_DATABASE'
,
'forge'
),
'username'
=>
env
(
'DB_USERNAME'
,
'forge'
),
...
...
@@ -76,10 +56,19 @@ return [
'charset'
=>
'utf8'
,
'prefix'
=>
''
,
'schema'
=>
'public'
,
'sslmode'
=>
'prefer'
,
],
'sqlsrv'
=>
[
'driver'
=>
'sqlsrv'
,
'host'
=>
env
(
'DB_HOST'
,
'localhost'
),
'port'
=>
env
(
'DB_PORT'
,
'1433'
),
'database'
=>
env
(
'DB_DATABASE'
,
'forge'
),
'username'
=>
env
(
'DB_USERNAME'
,
'forge'
),
'password'
=>
env
(
'DB_PASSWORD'
,
''
),
'charset'
=>
'utf8'
,
'prefix'
=>
''
,
],
],
/*
|--------------------------------------------------------------------------
| Migration Repository Table
...
...
@@ -90,9 +79,7 @@ return [
| the migrations on disk haven't actually been run in the database.
|
*/
'migrations'
=>
'migrations'
,
/*
|--------------------------------------------------------------------------
| Redis Databases
...
...
@@ -103,18 +90,13 @@ return [
| such as APC or Memcached. Laravel makes it easy to dig right in.
|
*/
'redis'
=>
[
'cluster'
=>
false
,
'client'
=>
'predis'
,
'default'
=>
[
'host'
=>
env
(
'REDIS_HOST'
,
'
localhost
'
),
'host'
=>
env
(
'REDIS_HOST'
,
'
127.0.0.1
'
),
'password'
=>
env
(
'REDIS_PASSWORD'
,
null
),
'port'
=>
env
(
'REDIS_PORT'
,
6379
),
'database'
=>
0
,
],
],
];
config/filesystems.php
View file @
8d799eca
<?php
<?php
return
[
/*
|--------------------------------------------------------------------------
| Default Filesystem Disk
|--------------------------------------------------------------------------
|
| Here you may specify the default filesystem disk that should be used
| by the framework. A "local" driver, as well as a variety of cloud
| based drivers are available for your choosing. Just store away!
|
| Supported: "local", "ftp", "s3", "rackspace"
| by the framework. The "local" disk, as well as a variety of cloud
| based disks are available to your application. Just store away!
|
*/
'default'
=>
'local'
,
'default'
=>
env
(
'FILESYSTEM_DRIVER'
,
'local'
),
/*
|--------------------------------------------------------------------------
| Default Cloud Filesystem Disk
...
...
@@ -27,9 +22,7 @@ return [
| will be bound as the Cloud disk implementation in the container.
|
*/
'cloud'
=>
's3'
,
'cloud'
=>
env
(
'FILESYSTEM_CLOUD'
,
's3'
),
/*
|--------------------------------------------------------------------------
| Filesystem Disks
...
...
@@ -39,10 +32,10 @@ return [
| may even configure multiple disks of the same driver. Defaults have
| been setup for each driver as an example of the required options.
|
| Supported Drivers: "local", "ftp", "s3", "rackspace"
|
*/
'disks'
=>
[
'local'
=>
[
'driver'
=>
'local'
,
'root'
=>
base_path
(),
...
...
@@ -59,13 +52,18 @@ return [
'url'
=>
env
(
'APP_URL'
),
'visibility'
=>
'public'
,
],
'public'
=>
[
'driver'
=>
'local'
,
'root'
=>
storage_path
(
'app/public'
),
'url'
=>
env
(
'APP_URL'
)
.
'/storage'
,
'visibility'
=>
'public'
,
],
'content'
=>
[
'driver'
=>
'local'
,
'root'
=>
resource_path
(
'views'
),
],
's3'
=>
[
'driver'
=>
's3'
,
'key'
=>
env
(
'AWS_KEY'
),
...
...
@@ -73,7 +71,5 @@ return [
'region'
=>
env
(
'AWS_REGION'
),
'bucket'
=>
env
(
'AWS_BUCKET'
),
],
],
];
config/mail.php
View file @
8d799eca
...
...
@@ -11,8 +11,8 @@ return [
| sending of e-mail. You may specify which one you're using throughout
| your application here. By default, Laravel is setup for SMTP mail.
|
| Supported: "smtp", "
mail", "sendmail", "mailgun", "mandrill
",
| "s
es", "sparkpost", "log
"
| Supported: "smtp", "
sendmail", "mailgun", "mandrill", "ses
",
| "s
parkpost", "log", "array
"
|
*/
...
...
@@ -55,7 +55,10 @@ return [
|
*/
'from'
=>
[
'address'
=>
env
(
'MAIL_FROM_ADDRESS'
),
'name'
=>
env
(
'MAIL_FROM_NAME'
)],
'from'
=>
[
'address'
=>
env
(
'MAIL_FROM_ADDRESS'
,
'hello@example.com'
),
'name'
=>
env
(
'MAIL_FROM_NAME'
,
'Example'
),
],
/*
|--------------------------------------------------------------------------
...
...
@@ -83,30 +86,38 @@ return [
'username'
=>
env
(
'MAIL_USERNAME'
),
'password'
=>
env
(
'MAIL_PASSWORD'
),
/*
|--------------------------------------------------------------------------
| S
MTP Server Password
| S
endmail System Path
|--------------------------------------------------------------------------
|
|
Here you may set the password required by your SMTP server to send out
|
messages from your application. This will be given to the server on
|
connection so that the application will be able to send message
s.
|
When using the "sendmail" driver to send e-mails, we will need to know
|
the path to where Sendmail lives on this server. A default path has
|
been provided here, which will work well on most of your system
s.
|
*/
'
password'
=>
env
(
'MAIL_PASSWORD'
)
,
'
sendmail'
=>
'/usr/sbin/sendmail -bs'
,
/*
|--------------------------------------------------------------------------
|
Sendmail System Path
|
Markdown Mail Settings
|--------------------------------------------------------------------------
|
|
When using the "sendmail" driver to send e-mails, we will need to know
| the
path to where Sendmail lives on this server. A default path has
|
been provided here, which will work well on most of your systems.
|
If you are using Markdown based email rendering, you may configure your
| the
me and component paths here, allowing you to customize the design
|
of the emails. Or, you may simply stick with the Laravel defaults!
|
*/
'sendmail'
=>
'/usr/sbin/sendmail -bs'
,
'markdown'
=>
[
'theme'
=>
'default'
,
'paths'
=>
[
resource_path
(
'views/vendor/mail'
),
],
],
];
config/queue.php
View file @
8d799eca
<?php
return
[
/*
|--------------------------------------------------------------------------
| Default Queue Driver
|--------------------------------------------------------------------------
|
|
The Laravel queue API supports a variety of back-ends via an unified
|
Laravel's queue API supports an assortment of back-ends via a single
| API, giving you convenient access to each back-end using the same
| syntax for each one. Here you may set the default queue driver.
|
| Supported: "
null", "sync", "database", "beanstalkd", "sqs", "redis
"
| Supported: "
sync", "database", "beanstalkd", "sqs", "redis", "null
"
|
*/
'default'
=>
env
(
'QUEUE_DRIVER'
,
'sync'
),
/*
|--------------------------------------------------------------------------
| Queue Connections
...
...
@@ -27,27 +23,22 @@ return [
| for each back-end shipped with Laravel. You are free to add more.
|
*/
'connections'
=>
[
'sync'
=>
[
'driver'
=>
'sync'
,
],
'database'
=>
[
'driver'
=>
'database'
,
'table'
=>
'jobs'
,
'queue'
=>
'default'
,
'
expire'
=>
6
0
,
'
retry_after'
=>
9
0
,
],
'beanstalkd'
=>
[
'driver'
=>
'beanstalkd'
,
'host'
=>
'localhost'
,
'queue'
=>
'default'
,
'
ttr'
=>
6
0
,
'
retry_after'
=>
9
0
,
],
'sqs'
=>
[
'driver'
=>
'sqs'
,
'key'
=>
'your-public-key'
,
...
...
@@ -56,16 +47,13 @@ return [
'queue'
=>
'your-queue-name'
,
'region'
=>
'us-east-1'
,
],
'redis'
=>
[
'driver'
=>
'redis'
,
'connection'
=>
'default'
,
'queue'
=>
'default'
,
'
expire'
=>
6
0
,
'
retry_after'
=>
9
0
,
],
],
/*
|--------------------------------------------------------------------------
| Failed Queue Jobs
...
...
@@ -76,10 +64,8 @@ return [
| have failed. You may change them to any database / table you wish.
|
*/
'failed'
=>
[
'database'
=>
env
(
'DB_CONNECTION'
,
'mysql'
),
'table'
=>
'failed_jobs'
,
],
];
config/services.php
View file @
8d799eca
...
...
@@ -8,7 +8,7 @@ return [
|--------------------------------------------------------------------------
|
| This file is for storing the credentials for third party services such
| as Stripe, Mailgun,
Mandrill,
and others. This file provides a sane
| as Stripe, Mailgun,
SparkPost
and others. This file provides a sane
| default location for this type of information, allowing packages
| to have a conventional place to find your various credentials.
|
...
...
config/session.php
View file @
8d799eca
...
...
@@ -85,6 +85,19 @@ return [
'table'
=>
'sessions'
,
/*
|--------------------------------------------------------------------------
| Session Cache Store
|--------------------------------------------------------------------------
|
| When using the "apc" or "memcached" session drivers, you may specify a
| cache store that should be used for these sessions. This value must
| correspond with one of the application's configured cache stores.
|
*/
'store'
=>
null
,
/*
|--------------------------------------------------------------------------
| Session Sweeping Lottery
...
...
@@ -109,7 +122,10 @@ return [
|
*/
'cookie'
=>
'laravel_session'
,
'cookie'
=>
env
(
'SESSION_COOKIE'
,
str_slug
(
env
(
'APP_NAME'
,
'laravel'
),
'_'
)
.
'_session'
),
/*
|--------------------------------------------------------------------------
...
...
@@ -135,7 +151,7 @@ return [
|
*/
'domain'
=>
null
,
'domain'
=>
env
(
'SESSION_DOMAIN'
,
null
)
,
/*
|--------------------------------------------------------------------------
...
...
@@ -148,7 +164,7 @@ return [
|
*/
'secure'
=>
false
,
'secure'
=>
env
(
'SESSION_SECURE_COOKIE'
,
false
)
,
/*
|--------------------------------------------------------------------------
...
...
@@ -163,4 +179,19 @@ return [
'http_only'
=>
true
,
/*
|--------------------------------------------------------------------------
| Same-Site Cookies
|--------------------------------------------------------------------------
|
| This option determines how your cookies behave when cross-site requests
| take place, and can be used to mitigate CSRF attacks. By default, we
| do not enable this as other CSRF protection services are in place.
|
| Supported: "lax", "strict"
|
*/
'same_site'
=>
null
,
];
config/view.php
View file @
8d799eca
...
...
@@ -14,7 +14,7 @@ return [
*/
'paths'
=>
[
re
alpath
(
base_path
(
'resources/views'
)
),
re
source_path
(
'views'
),
],
/*
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment