06.10.2016 Views

laravel-5

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Upgrade Guide 29<br />

Compiled Classes<br />

If present, remove the following lines from config/compile.php in the files array:<br />

1 realpath(__DIR__.'/../app/Providers/BusServiceProvider.php'),<br />

2 realpath(__DIR__.'/../app/Providers/ConfigServiceProvider.php'),<br />

Not doing so can trigger an error when running php artisan optimize if the service providers<br />

listed here do not exist.<br />

CSRF Verification<br />

CSRF verification is no longer automatically performed when running unit tests. This is unlikely to<br />

affect your application.<br />

Database<br />

MySQL Dates<br />

Starting with MySQL 5.7, 0000-00-00 00:00:00 is no longer considered a valid date, since strict<br />

mode is enabled by default. All timestamp columns should receive a valid default value when you<br />

insert records into your database. You may use the useCurrent method in your migrations to default<br />

the timestamp columns to the current timestamps, or you may make the timestamps nullable to<br />

allow null values:<br />

1 $table->timestamp('foo')->nullable();<br />

2<br />

3 $table->timestamp('foo')->useCurrent();<br />

4<br />

5 $table->nullableTimestamps();<br />

MySQL JSON Column Type<br />

The json column type now creates actual JSON columns when used by the MySQL driver. If you<br />

are not running MySQL 5.7 or above, this column type will not be available to you. Instead, use the<br />

text column type in your migration.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!