Browse Source

Sync with 5.0

Graham Campbell 8 years ago
parent
commit
7e303014b6
6 changed files with 10 additions and 6 deletions
  1. 2 1
      app/Exceptions/Handler.php
  2. 3 1
      composer.json
  3. 1 1
      config/app.php
  4. 2 2
      config/services.php
  5. 1 0
      resources/lang/en/validation.php
  6. 1 1
      server.php

+ 2 - 1
app/Exceptions/Handler.php

@@ -3,6 +3,7 @@
 namespace App\Exceptions;
 
 use Exception;
+use Symfony\Component\HttpKernel\Exception\HttpException;
 use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
 
 class Handler extends ExceptionHandler
@@ -13,7 +14,7 @@ class Handler extends ExceptionHandler
      * @var array
      */
     protected $dontReport = [
-        \Symfony\Component\HttpKernel\Exception\HttpException::class,
+        HttpException::class,
     ];
 
     /**

+ 3 - 1
composer.json

@@ -32,8 +32,10 @@
             "php artisan clear-compiled",
             "php artisan optimize"
         ],
+        "pre-update-cmd": [
+            "php artisan clear-compiled"
+        ],
         "post-update-cmd": [
-            "php artisan clear-compiled",
             "php artisan optimize"
         ],
         "post-root-package-install": [

+ 1 - 1
config/app.php

@@ -13,7 +13,7 @@ return [
     |
     */
 
-    'debug' => env('APP_DEBUG'),
+    'debug' => env('APP_DEBUG', false),
 
     /*
     |--------------------------------------------------------------------------

+ 2 - 2
config/services.php

@@ -24,14 +24,14 @@ return [
     ],
 
     'ses' => [
-        'key' => '',
+        'key'    => '',
         'secret' => '',
         'region' => 'us-east-1',
     ],
 
     'stripe' => [
         'model'  => App\User::class,
-        'key' => '',
+        'key'    => '',
         'secret' => '',
     ],
 

+ 1 - 0
resources/lang/en/validation.php

@@ -71,6 +71,7 @@ return [
         'array'   => 'The :attribute must contain :size items.',
     ],
     'timezone'             => 'The :attribute must be a valid zone.',
+    'string'               => 'The :attribute must be a string.',
     'unique'               => 'The :attribute has already been taken.',
     'url'                  => 'The :attribute format is invalid.',
 

+ 1 - 1
server.php

@@ -14,7 +14,7 @@ $uri = urldecode(
 // This file allows us to emulate Apache's "mod_rewrite" functionality from the
 // built-in PHP web server. This provides a convenient way to test a Laravel
 // application without having installed a "real" web server software here.
-if ($uri !== '/' and file_exists(__DIR__.'/public'.$uri)) {
+if ($uri !== '/' && file_exists(__DIR__.'/public'.$uri)) {
     return false;
 }