|
1 | 1 | # Changelog
|
2 | 2 |
|
3 |
| -All notable changes to `cybercog/laravel-ownership` will be documented in this file. |
| 3 | +All notable changes to `cybercog/laravel-ownership` are documented in [Laravel Ownership releases] page. |
4 | 4 |
|
5 |
| -## [Unreleased] |
6 |
| - |
7 |
| -## [5.6.0] - 2024-03-09 |
8 |
| - |
9 |
| -### Added |
10 |
| - |
11 |
| -- ([#32]) Added Laravel 11 support |
12 |
| - |
13 |
| -## [5.5.0] - 2023-02-24 |
14 |
| - |
15 |
| -### Added |
16 |
| - |
17 |
| -- ([#28]) Added Laravel 10 support |
18 |
| - |
19 |
| -## [5.4.0] - 2023-02-22 |
20 |
| - |
21 |
| -### Added |
22 |
| - |
23 |
| -- ([#25]) Added Laravel 9 support |
24 |
| - |
25 |
| -### Removed |
26 |
| - |
27 |
| -- ([#27]) Dropped PHP 7.x support |
28 |
| -- ([#27]) Dropped Laravel 5.2 support |
29 |
| -- ([#27]) Dropped Laravel 5.3 support |
30 |
| -- ([#27]) Dropped Laravel 5.4 support |
31 |
| -- ([#27]) Dropped Laravel 5.5 support |
32 |
| -- ([#27]) Dropped Laravel 5.6 support |
33 |
| -- ([#27]) Dropped Laravel 5.7 support |
34 |
| -- ([#27]) Dropped Laravel 5.8 support |
35 |
| -- ([#27]) Dropped Laravel 6 support |
36 |
| -- ([#27]) Dropped Laravel 7 support |
37 |
| -- ([#27]) Dropped Laravel 8 support |
38 |
| - |
39 |
| -## [5.3.0] - 2020-12-31 |
40 |
| - |
41 |
| -### Added |
42 |
| - |
43 |
| -- ([#22]) Added Laravel 6.x support |
44 |
| -- ([#22]) Added Laravel 7.x support |
45 |
| -- ([#22]) Added Laravel 8.x support |
46 |
| -- ([#23]) Added PHP 8.x support |
47 |
| - |
48 |
| -### Removed |
49 |
| - |
50 |
| -- ([#23]) Dropped PHP 5.6 support |
51 |
| -- ([#23]) Dropped PHP 7.0 support |
52 |
| - |
53 |
| -## [5.2.0] - 2018-09-09 |
54 |
| - |
55 |
| -### Added |
56 |
| - |
57 |
| -- ([#19]) Laravel 5.7 support |
58 |
| - |
59 |
| -## [5.1.0] - 2018-02-08 |
60 |
| - |
61 |
| -### Added |
62 |
| - |
63 |
| -- Laravel 5.6 support |
64 |
| - |
65 |
| -## [5.0.0] - 2017-09-13 |
66 |
| - |
67 |
| -### Changed |
68 |
| - |
69 |
| -- Contracts namespace changed from `Cog\Contracts\Laravel\Ownership` to `Cog\Contracts\Ownership` |
70 |
| - |
71 |
| -### Fixed |
72 |
| - |
73 |
| -- Service Provider auto-discovery |
74 |
| - |
75 |
| -## [4.0.0] - 2017-09-09 |
76 |
| - |
77 |
| -### Added |
78 |
| - |
79 |
| -- Ownable models got new `isOwnedByDefaultOwner` method which automatically try to resolve current user. |
80 |
| - |
81 |
| -### Changed |
82 |
| - |
83 |
| -- Contracts namespace changed from `Cog\Ownership\Contracts` to `Cog\Contracts\Laravel\Ownership` |
84 |
| -- Classes namespace changed from `Cog\Ownership` to `Cog\Laravel\Ownership` |
85 |
| -- `ModelObserver` renamed to `OwnableObserver` |
86 |
| -- `HasOwner` contract renamed to `Ownable` |
87 |
| - |
88 |
| -## [3.1.0] - 2017-08-30 |
89 |
| - |
90 |
| -### Added |
91 |
| - |
92 |
| -- Laravel 5.5 support |
93 |
| -- Service Provider auto-discovery |
94 |
| - |
95 |
| -## [3.0.0] - 2017-04-10 |
96 |
| - |
97 |
| -### Changed |
98 |
| - |
99 |
| -- Default database column used by models with strict ownership was renamed from `owned_by` to `owned_by_id`. |
100 |
| - |
101 |
| -[Upgrade instructions] |
102 |
| - |
103 |
| -## [2.2.0] - 2017-02-07 |
104 |
| - |
105 |
| -### Added |
106 |
| - |
107 |
| -- `owner()` alias for method `ownedBy` |
108 |
| -- Laravel 5.4 support |
109 |
| - |
110 |
| -## [2.1.0] - 2016-12-21 |
111 |
| - |
112 |
| -### Added |
113 |
| - |
114 |
| -- `isNotOwnedBy($owner)` to check if model not owned by concrete owner. |
115 |
| - |
116 |
| -## [2.0.0] - 2016-12-17 |
117 |
| - |
118 |
| -### Added |
119 |
| - |
120 |
| -- `withDefaultOwner()` set default owner value on create. |
121 |
| -- `withDefaultOwner($owner)` overwrite default owner value on create with concrete owner. |
122 |
| -- `withoutDefaultOwner()` don't set default owner on model create. |
123 |
| -- `scopeWhereNotOwnedBy($owner)` scope results to exclude unowned records by owner. |
124 |
| - |
125 |
| -### Changed |
126 |
| - |
127 |
| -- Renamed method `getDefaultOwner()` to `resolveDefaultOwner()`. |
128 |
| -- Renamed flag attribute `$setDefaultOwnerOnCreate` to `$withDefaultOwnerOnCreate`. |
129 |
| - |
130 |
| -### Fixed |
131 |
| - |
132 |
| -- Set default owner on model creation. |
133 |
| - |
134 |
| -## [1.0.0] - 2016-12-15 |
135 |
| - |
136 |
| -- Initial release |
137 |
| - |
138 |
| -[Unreleased]: https://github.com/cybercog/laravel-ownership/compare/5.6.0...master |
139 |
| -[5.6.0]: https://github.com/cybercog/laravel-ownership/compare/5.4.0...5.6.0 |
140 |
| -[5.5.0]: https://github.com/cybercog/laravel-ownership/compare/5.4.0...5.5.0 |
141 |
| -[5.4.0]: https://github.com/cybercog/laravel-ownership/compare/5.3.0...5.4.0 |
142 |
| -[5.3.0]: https://github.com/cybercog/laravel-ownership/compare/5.2.0...5.3.0 |
143 |
| -[5.2.0]: https://github.com/cybercog/laravel-ownership/compare/5.1.0...5.2.0 |
144 |
| -[5.1.0]: https://github.com/cybercog/laravel-ownership/compare/5.0.0...5.1.0 |
145 |
| -[5.0.0]: https://github.com/cybercog/laravel-ownership/compare/4.0.0...5.0.0 |
146 |
| -[4.0.0]: https://github.com/cybercog/laravel-ownership/compare/3.1.0...4.0.0 |
147 |
| -[3.1.0]: https://github.com/cybercog/laravel-ownership/compare/3.0.0...3.1.0 |
148 |
| -[3.0.0]: https://github.com/cybercog/laravel-ownership/compare/2.2.0...3.0.0 |
149 |
| -[2.2.0]: https://github.com/cybercog/laravel-ownership/compare/2.1.0...2.2.0 |
150 |
| -[2.1.0]: https://github.com/cybercog/laravel-ownership/compare/2.0.0...2.1.0 |
151 |
| -[2.0.0]: https://github.com/cybercog/laravel-ownership/compare/1.0.0...2.0.0 |
152 |
| -[Upgrade instructions]: UPGRADING.md |
153 |
| - |
154 |
| -[#32]: https://github.com/cybercog/laravel-ownership/pull/32 |
155 |
| -[#28]: https://github.com/cybercog/laravel-ownership/pull/28 |
156 |
| -[#27]: https://github.com/cybercog/laravel-ownership/pull/27 |
157 |
| -[#25]: https://github.com/cybercog/laravel-ownership/pull/25 |
158 |
| -[#23]: https://github.com/cybercog/laravel-ownership/pull/23 |
159 |
| -[#22]: https://github.com/cybercog/laravel-ownership/pull/22 |
160 |
| -[#19]: https://github.com/cybercog/laravel-ownership/pull/19 |
| 5 | +[Laravel Ownership releases]: https://github.com/cybercog/laravel-ownership/releases |
0 commit comments