Skip to content

Commit

Permalink
Merge pull request #1655 from CachetHQ/sync
Browse files Browse the repository at this point in the history
Sync with laravel
  • Loading branch information
GrahamCampbell committed Mar 24, 2016
2 parents bca7c53 + 53dd12e commit 3d77a7a
Show file tree
Hide file tree
Showing 11 changed files with 30 additions and 27 deletions.
6 changes: 4 additions & 2 deletions config/cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,16 @@

'file' => [
'driver' => 'file',
'path' => storage_path().'/framework/cache',
'path' => storage_path('framework/cache'),
],

'memcached' => [
'driver' => 'memcached',
'servers' => [
[
'host' => '127.0.0.1', 'port' => 11211, 'weight' => 100,
'host' => '127.0.0.1',
'port' => 11211,
'weight' => 100,
],
],
],
Expand Down
2 changes: 1 addition & 1 deletion config/database.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@

'sqlite' => [
'driver' => 'sqlite',
'database' => env('DB_HOST', storage_path().'/database.sqlite'),
'database' => env('DB_DATABASE', database_path('database.sqlite')),
'prefix' => env('DB_PREFIX', null),
],

Expand Down
21 changes: 5 additions & 16 deletions config/filesystems.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,13 @@

'local' => [
'driver' => 'local',
'root' => storage_path().'/app',
'root' => storage_path('app'),
],

'ftp' => [
'driver' => 'ftp',
'host' => 'ftp.example.com',
'username' => 'your-username',
'password' => 'your-password',
'public' => [
'driver' => 'local',
'root' => storage_path('app/public'),
'visibility' => 'public',
],

's3' => [
Expand All @@ -72,16 +71,6 @@
'bucket' => 'your-bucket',
],

'rackspace' => [
'driver' => 'rackspace',
'username' => 'your-username',
'key' => 'your-key',
'container' => 'your-container',
'endpoint' => 'https://identity.api.rackspacecloud.com/v2.0/',
'region' => 'IAD',
'url_type' => 'publicURL',
],

],

];
3 changes: 2 additions & 1 deletion config/mail.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
| 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", "ses", "log"
| Supported: "smtp", "mail", "sendmail", "mailgun", "mandrill",
| "ses", "sparkpost", "log"
|
*/

Expand Down
4 changes: 4 additions & 0 deletions config/services.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,8 @@
'region' => 'us-east-1',
],

'sparkpost' => [
'secret' => env('SPARKPOST_SECRET'),
],

];
6 changes: 2 additions & 4 deletions config/view.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@
|
*/

'paths' => [
realpath(base_path('resources/views')),
],
'paths' => [realpath(base_path('resources/views'))],

/*
|--------------------------------------------------------------------------
Expand All @@ -37,6 +35,6 @@
|
*/

'compiled' => realpath(storage_path().'/framework/views'),
'compiled' => realpath(storage_path('framework/views')),

];
4 changes: 2 additions & 2 deletions database/factories/ModelFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@

$factory->define(Subscriber::class, function ($faker) {
return [
'email' => $faker->email,
'email' => $faker->safeEmail,
'verify_code' => 'Mqr80r2wJtxHCW5Ep4azkldFfIwHhw98M9HF04dn0z',
'verified_at' => Carbon::now(),
];
Expand All @@ -91,7 +91,7 @@
$factory->define(User::class, function ($faker) {
return [
'username' => $faker->userName,
'email' => $faker->email,
'email' => $faker->safeEmail,
'password' => str_random(10),
'remember_token' => str_random(10),
'api_key' => str_random(20),
Expand Down
2 changes: 1 addition & 1 deletion phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<env name="APP_URL" value="http://localhost"/>
<env name="APP_KEY" value="GCvcgDKMRIN498g52zfVEd9CxDs6PR7q"/>
<env name="DB_DRIVER" value="sqlite"/>
<env name="DB_HOST" value=":memory:"/>
<env name="DB_DATABASE" value=":memory:"/>
<env name="CACHE_DRIVER" value="array"/>
<env name="SESSION_DRIVER" value="array"/>
<env name="MAIL_DRIVER" value="log"/>
Expand Down
4 changes: 4 additions & 0 deletions public/.htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,8 @@
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]

# Handle Authorization Header
RewriteCond %{HTTP:Authorization} .
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
</IfModule>
3 changes: 3 additions & 0 deletions resources/lang/en/validation.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,11 @@
'digits_between' => 'The :attribute must be :digits digits.',
'email' => 'The :attribute must be between :min and :max digits.',
'exists' => 'The :attribute must be a valid email address.',
'distinct' => 'The :attribute field has a duplicate value.',
'filled' => 'The :attribute format is invalid.',
'image' => 'The :attribute must be an image.',
'in' => 'The :attribute must be an image.',
'in_array' => 'The :attribute field does not exist in :other.',
'integer' => 'The selected :attribute is invalid.',
'ip' => 'The :attribute must be an integer.',
'json' => 'The :attribute must be a valid JSON string.',
Expand All @@ -66,6 +68,7 @@
],
'not_in' => 'The :attribute must have at least :min items.',
'numeric' => 'The selected :attribute is invalid.',
'present' => 'The :attribute field must be present.',
'regex' => 'The :attribute must be a number.',
'required' => 'The :attribute format is invalid.',
'required_if' => 'The :attribute field is required.',
Expand Down
2 changes: 2 additions & 0 deletions storage/framework/.gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
config.php
routes.php
compiled.php
schedule-*
services.php
services.json
events.scanned.php
routes.scanned.php
Expand Down

0 comments on commit 3d77a7a

Please sign in to comment.