Skip to content

Commit 3d77a7a

Browse files
Merge pull request #1655 from CachetHQ/sync
Sync with laravel
2 parents bca7c53 + 53dd12e commit 3d77a7a

File tree

11 files changed

+30
-27
lines changed

11 files changed

+30
-27
lines changed

config/cache.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,16 @@
5353

5454
'file' => [
5555
'driver' => 'file',
56-
'path' => storage_path().'/framework/cache',
56+
'path' => storage_path('framework/cache'),
5757
],
5858

5959
'memcached' => [
6060
'driver' => 'memcached',
6161
'servers' => [
6262
[
63-
'host' => '127.0.0.1', 'port' => 11211, 'weight' => 100,
63+
'host' => '127.0.0.1',
64+
'port' => 11211,
65+
'weight' => 100,
6466
],
6567
],
6668
],

config/database.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757

5858
'sqlite' => [
5959
'driver' => 'sqlite',
60-
'database' => env('DB_HOST', storage_path().'/database.sqlite'),
60+
'database' => env('DB_DATABASE', database_path('database.sqlite')),
6161
'prefix' => env('DB_PREFIX', null),
6262
],
6363

config/filesystems.php

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,13 @@
5454

5555
'local' => [
5656
'driver' => 'local',
57-
'root' => storage_path().'/app',
57+
'root' => storage_path('app'),
5858
],
5959

60-
'ftp' => [
61-
'driver' => 'ftp',
62-
'host' => 'ftp.example.com',
63-
'username' => 'your-username',
64-
'password' => 'your-password',
60+
'public' => [
61+
'driver' => 'local',
62+
'root' => storage_path('app/public'),
63+
'visibility' => 'public',
6564
],
6665

6766
's3' => [
@@ -72,16 +71,6 @@
7271
'bucket' => 'your-bucket',
7372
],
7473

75-
'rackspace' => [
76-
'driver' => 'rackspace',
77-
'username' => 'your-username',
78-
'key' => 'your-key',
79-
'container' => 'your-container',
80-
'endpoint' => 'https://identity.api.rackspacecloud.com/v2.0/',
81-
'region' => 'IAD',
82-
'url_type' => 'publicURL',
83-
],
84-
8574
],
8675

8776
];

config/mail.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020
| sending of e-mail. You may specify which one you're using throughout
2121
| your application here. By default, Laravel is setup for SMTP mail.
2222
|
23-
| Supported: "smtp", "mail", "sendmail", "mailgun", "mandrill", "ses", "log"
23+
| Supported: "smtp", "mail", "sendmail", "mailgun", "mandrill",
24+
| "ses", "sparkpost", "log"
2425
|
2526
*/
2627

config/services.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,8 @@
4242
'region' => 'us-east-1',
4343
],
4444

45+
'sparkpost' => [
46+
'secret' => env('SPARKPOST_SECRET'),
47+
],
48+
4549
];

config/view.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,7 @@
2222
|
2323
*/
2424

25-
'paths' => [
26-
realpath(base_path('resources/views')),
27-
],
25+
'paths' => [realpath(base_path('resources/views'))],
2826

2927
/*
3028
|--------------------------------------------------------------------------
@@ -37,6 +35,6 @@
3735
|
3836
*/
3937

40-
'compiled' => realpath(storage_path().'/framework/views'),
38+
'compiled' => realpath(storage_path('framework/views')),
4139

4240
];

database/factories/ModelFactory.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575

7676
$factory->define(Subscriber::class, function ($faker) {
7777
return [
78-
'email' => $faker->email,
78+
'email' => $faker->safeEmail,
7979
'verify_code' => 'Mqr80r2wJtxHCW5Ep4azkldFfIwHhw98M9HF04dn0z',
8080
'verified_at' => Carbon::now(),
8181
];
@@ -91,7 +91,7 @@
9191
$factory->define(User::class, function ($faker) {
9292
return [
9393
'username' => $faker->userName,
94-
'email' => $faker->email,
94+
'email' => $faker->safeEmail,
9595
'password' => str_random(10),
9696
'remember_token' => str_random(10),
9797
'api_key' => str_random(20),

phpunit.xml.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
<env name="APP_URL" value="http://localhost"/>
3131
<env name="APP_KEY" value="GCvcgDKMRIN498g52zfVEd9CxDs6PR7q"/>
3232
<env name="DB_DRIVER" value="sqlite"/>
33-
<env name="DB_HOST" value=":memory:"/>
33+
<env name="DB_DATABASE" value=":memory:"/>
3434
<env name="CACHE_DRIVER" value="array"/>
3535
<env name="SESSION_DRIVER" value="array"/>
3636
<env name="MAIL_DRIVER" value="log"/>

public/.htaccess

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,8 @@
1313
RewriteCond %{REQUEST_FILENAME} !-d
1414
RewriteCond %{REQUEST_FILENAME} !-f
1515
RewriteRule ^ index.php [L]
16+
17+
# Handle Authorization Header
18+
RewriteCond %{HTTP:Authorization} .
19+
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
1620
</IfModule>

resources/lang/en/validation.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,11 @@
4545
'digits_between' => 'The :attribute must be :digits digits.',
4646
'email' => 'The :attribute must be between :min and :max digits.',
4747
'exists' => 'The :attribute must be a valid email address.',
48+
'distinct' => 'The :attribute field has a duplicate value.',
4849
'filled' => 'The :attribute format is invalid.',
4950
'image' => 'The :attribute must be an image.',
5051
'in' => 'The :attribute must be an image.',
52+
'in_array' => 'The :attribute field does not exist in :other.',
5153
'integer' => 'The selected :attribute is invalid.',
5254
'ip' => 'The :attribute must be an integer.',
5355
'json' => 'The :attribute must be a valid JSON string.',
@@ -66,6 +68,7 @@
6668
],
6769
'not_in' => 'The :attribute must have at least :min items.',
6870
'numeric' => 'The selected :attribute is invalid.',
71+
'present' => 'The :attribute field must be present.',
6972
'regex' => 'The :attribute must be a number.',
7073
'required' => 'The :attribute format is invalid.',
7174
'required_if' => 'The :attribute field is required.',

0 commit comments

Comments
 (0)