You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -259,7 +260,7 @@ Add the following code above `Blade::sharpen()` in `application/start.php`..
259
260
- Fixes Eloquent model hydration bug involving custom setters.
260
261
261
262
<aname="upgrade-3.1.1"></a>
262
-
## Upgrading From 3.1
263
+
###Upgrading From 3.1
263
264
264
265
- Replace the **laravel** folder.
265
266
@@ -297,48 +298,48 @@ Add the following code above `Blade::sharpen()` in `application/start.php`..
297
298
- Added "before" and "after" validation checks for dates.
298
299
299
300
<aname="upgrade-3.1"></a>
300
-
## Upgrading From 3.0
301
+
###Upgrading From 3.0
301
302
302
-
### Replace your **application/start.php** file.
303
+
####Replace your **application/start.php** file.
303
304
304
305
The default **start.php** file has been expanded in order to give you more flexibility over the loading of your language, configuration, and view files. To upgrade your file, copy your current file and paste it at the bottom of a copy of the new Laravel 3.1 start file. Next, scroll up in the **start** file until you see the default Autoloader registrations (line 61 and line 76). Delete both of these sections since you just pasted your previous auto-loader registrations at the bottom of the file.
305
306
306
-
### Remove the **display** option from your **errors** configuration file.
307
+
####Remove the **display** option from your **errors** configuration file.
307
308
308
309
This option is now set at the beginning of your **application/start** file.
309
310
310
-
### Call the parent controller's constructor from your controller.
311
+
####Call the parent controller's constructor from your controller.
311
312
312
313
Simply add a **parent::__construct();** to to any of your controllers that have a constructor.
313
314
314
-
### Prefix Laravel migration created indexes with their table name.
315
+
####Prefix Laravel migration created indexes with their table name.
315
316
316
317
If you have created indexes on tables using the Laravel migration system and you used to the default index naming scheme provided by Laravel, prefix the index names with their table name on your database. So, if the current index name is "id_unique" on the "users" table, make the index name "users_id_unique".
317
318
318
-
### Add alias for Eloquent in your application configuration.
319
+
####Add alias for Eloquent in your application configuration.
319
320
320
321
Add the following to the **aliases** array in your **application/config/application.php** file:
Eloquent now maintains **created_at** and **updated_at** column on many-to-many intermediate tables by default. Simply add these columns to your tables. Also, many-to-many tables are now the singular model names concatenated with an underscore. For example, if the relationship is between User and Role, the intermediate table name should be **role_user**.
328
329
329
-
### Remove Eloquent bundle.
330
+
####Remove Eloquent bundle.
330
331
331
332
If you are using the Eloquent bundle with your installation, you can remove it from your bundles directory and your **application/bundles.php** file. Eloquent version 2 is included in the core in Laravel 3.1. Your models can also now extend simply **Eloquent** instead of **Eloquent\Model**.
332
333
333
-
### Update your **config/strings.php** file.
334
+
####Update your **config/strings.php** file.
334
335
335
336
English pluralization and singularization is now automatic. Just completely replace your **application/config/strings.php** file.
336
337
337
-
### Add the **fetch** option to your database configuration file.
338
+
####Add the **fetch** option to your database configuration file.
338
339
339
340
A new **fetch** option allows you to specify in which format you receive your database results. Just copy and paste the option from the new **application/config/database.php** file.
340
341
341
-
### Add **database** option to your Redis configuration.
342
+
####Add **database** option to your Redis configuration.
342
343
343
344
If you are using Redis, add the "database" option to your Redis connection configurations. The "database" value can be zero by default.
0 commit comments