New Release
TypeRocket v5.1.9 Has Launched
Table of Contents
Contents
TypeRocket v5.1.9 has launched. This update is more significant than previous patches. The update includes the following changes:
-
BREAKING - Signature changes! Add the ability to set the
local_idon model relationships. Affected classes:ModelandEagerLoader. - Upgrade action scheduler to 3.5.
- Add
TEMPLATE_TYPEto builder and matrix fields. - Add
Arr::filterNull()method. - Add
Data::createMapIndexBy()method. - Add
ResponsemethodneedsBasicAuthentication(). - Add
Str::explodeFromRight(). - Add
RequestmethodgetPassword()andgetUsername(). - Improve extension and TypeRocket settings forms and templates.
- Improve custom route redirect SEO with 301 redirects by replacing 302 redirects.
- Account for Rank Math SEO's super global
$user_idinjection bug. - Fix
fopen()bug inFileclass.
Signature Changes
The following model methods have new signatures; these changes will only impact you if you override the core methods with your own PHP code.
\TypeRocket\Models\Model::hasOne($modelClass, $id_foreign = null, $id_local = null, $scope = null);
\TypeRocket\Models\Model::belongsTo($modelClass, $id_local = null, $id_foreign = null, $scope = null);
\TypeRocket\Models\Model::hasMany($modelClass, $id_foreign = null, $id_local = null, $scope = null);
\TypeRocket\Models\Model::belongsToMany($modelClass, $junction_table, $id_column = null, $id_foreign = null, $scope = null, $reselect = true, $id_local = null);