Skip to content

Commit 2190c64

Browse files
authored
Updated custom Eloquent relations for Laravel 5.8 (#996)
* Update Laravel version * Removed deprecated `belongsToManyConstrained` * Updated Changelog * Fix styling * Update sqlite support * Updated Laravel references
1 parent 55c67ec commit 2190c64

42 files changed

Lines changed: 478 additions & 677 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
1818

1919
### Changed
2020
- Account sprinkle now extend the Core `BakeCommand` class to add the `create-admin` to the general bake command. Any sprinkle already extending the Core `BakeCommand` might need adjustments.
21+
- Updated custom Eloquent relations (`belongsToManyThrough`, `morphToManyUnique`, `belongsToManyUnique`, `morphToManyUnique`, etc.) to support Laravel 5.8. See [The `belongsToMany` Method](https://laravel.com/docs/5.5/upgrade#upgrade-5.5.0).
2122

23+
### Removed
24+
- Removed `belongsToManyConstrained` (deprecated in 4.1.6)
2225

2326
## [v4.2.3]
2427

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ If you simply want to show that you like this project, or want to remember it fo
3333

3434
Copyright (c) 2019, free to use in personal and commercial software as per the [license](LICENSE.md).
3535

36-
UserFrosting is a secure, modern user management system written in PHP and built on top of the [Slim Microframework](http://www.slimframework.com/), [Twig](http://twig.sensiolabs.org/) templating engine, and [Eloquent](https://laravel.com/docs/5.4/eloquent#introduction) ORM.
36+
UserFrosting is a secure, modern user management system written in PHP and built on top of the [Slim Microframework](http://www.slimframework.com/), [Twig](http://twig.sensiolabs.org/) templating engine, and [Eloquent](https://laravel.com/docs/5.8/eloquent#introduction) ORM.
3737

3838
## Features
3939

app/sprinkles/account/src/Database/Migrations/v400/ActivitiesTable.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
* Sessions table migration
1818
* Version 4.0.0.
1919
*
20-
* See https://laravel.com/docs/5.4/migrations#tables
20+
* See https://laravel.com/docs/5.8/migrations#tables
2121
*
2222
* @author Alex Weissman (https://alexanderweissman.com)
2323
*/

app/sprinkles/account/src/Database/Migrations/v400/GroupsTable.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
* "Group" now replaces the notion of "primary group" in earlier versions of UF. A user can belong to exactly one group.
2020
* Version 4.0.0.
2121
*
22-
* See https://laravel.com/docs/5.4/migrations#tables
22+
* See https://laravel.com/docs/5.8/migrations#tables
2323
*
2424
* @author Alex Weissman (https://alexanderweissman.com)
2525
*/

app/sprinkles/account/src/Database/Migrations/v400/PasswordResetsTable.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
* Manages requests for password resets.
1919
* Version 4.0.0.
2020
*
21-
* See https://laravel.com/docs/5.4/migrations#tables
21+
* See https://laravel.com/docs/5.8/migrations#tables
2222
*
2323
* @author Alex Weissman (https://alexanderweissman.com)
2424
*/

app/sprinkles/account/src/Database/Migrations/v400/PermissionRolesTable.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
* Many-to-many mapping between permissions and roles.
1919
* Version 4.0.0.
2020
*
21-
* See https://laravel.com/docs/5.4/migrations#tables
21+
* See https://laravel.com/docs/5.8/migrations#tables
2222
*
2323
* @author Alex Weissman (https://alexanderweissman.com)
2424
*/

app/sprinkles/account/src/Database/Migrations/v400/PermissionsTable.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
* Also, they now map many-to-many to roles.
2222
* Version 4.0.0.
2323
*
24-
* See https://laravel.com/docs/5.4/migrations#tables
24+
* See https://laravel.com/docs/5.8/migrations#tables
2525
*
2626
* @author Alex Weissman (https://alexanderweissman.com)
2727
*/

app/sprinkles/account/src/Database/Migrations/v400/PersistencesTable.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
* Many-to-many mapping between roles and users.
1919
* Version 4.0.0.
2020
*
21-
* See https://laravel.com/docs/5.4/migrations#tables
21+
* See https://laravel.com/docs/5.8/migrations#tables
2222
*
2323
* @author Alex Weissman (https://alexanderweissman.com)
2424
*/

app/sprinkles/account/src/Database/Migrations/v400/RoleUsersTable.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
* Many-to-many mapping between roles and users.
1919
* Version 4.0.0.
2020
*
21-
* See https://laravel.com/docs/5.4/migrations#tables
21+
* See https://laravel.com/docs/5.8/migrations#tables
2222
*
2323
* @author Alex Weissman (https://alexanderweissman.com)
2424
*/

app/sprinkles/account/src/Database/Migrations/v400/RolesTable.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
* N.B.: Default roles will be added in `DefaultPermissions` seed
2020
* Version 4.0.0.
2121
*
22-
* See https://laravel.com/docs/5.4/migrations#tables
22+
* See https://laravel.com/docs/5.8/migrations#tables
2323
*
2424
* @author Alex Weissman (https://alexanderweissman.com)
2525
*/

0 commit comments

Comments
 (0)