File tree 6 files changed +26
-23
lines changed
6 files changed +26
-23
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- :major: 11
2
+ :major: 12
3
3
:minor: 0
4
- :patch: 2
4
+ :patch: 0
5
5
:special: ''
6
6
:metadata: ''
Original file line number Diff line number Diff line change 1
1
# Changelog
2
2
3
+ ## 12.0.0 - 26-Feb-2025
4
+
5
+ - Added Laravel 12 support
6
+
7
+
3
8
## 11.0.2 - 20-Dec-2024
4
9
5
10
- Support PHP 8.4 (#148 , thanks @tectiv3 )
Original file line number Diff line number Diff line change @@ -48,8 +48,9 @@ version should match the Laravel version.
48
48
49
49
| Laravel Version | Package Version |
50
50
| :---------------:| :---------------:|
51
- | ^11.0 | ^11.0 |
52
- | ^10.0 | ^10.0 |
51
+ | ^12.0 | ^12.0 |
52
+ | ^11.0 | ^11.0 |
53
+ | ^10.0 | ^10.0 |
53
54
| 9.0 | ^9.0 |
54
55
| 8.0 | ^8.0 |
55
56
| 7.0 | ^7.0 |
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " cviebrock/eloquent-taggable" ,
3
- "description" : " Easy ability to tag your Eloquent models in Laravel 5 ." ,
3
+ "description" : " Easy ability to tag your Eloquent models in Laravel." ,
4
4
"keywords" : [
5
5
" laravel" ,
6
6
" eloquent" ,
22
22
],
23
23
"require" : {
24
24
"php" : " ^8.2" ,
25
- "illuminate/config" : " ^11 .0" ,
26
- "illuminate/database" : " ^11 .0" ,
27
- "illuminate/support" : " ^11 .0"
25
+ "illuminate/config" : " ^12 .0" ,
26
+ "illuminate/database" : " ^12 .0" ,
27
+ "illuminate/support" : " ^12 .0"
28
28
},
29
29
"require-dev" : {
30
30
"friendsofphp/php-cs-fixer" : " ^3.65" ,
31
31
"larastan/larastan" : " ^3.0" ,
32
- "orchestra/testbench" : " ^9.6 " ,
33
- "pestphp/pest" : " ^2.28 " ,
32
+ "orchestra/testbench" : " ^10.0 " ,
33
+ "pestphp/pest" : " ^3.7 " ,
34
34
"phpstan/phpstan" : " ^2.0"
35
35
},
36
36
"autoload" : {
67
67
"providers" : [
68
68
" Cviebrock\\ EloquentTaggable\\ ServiceProvider"
69
69
]
70
- },
71
- "branch-alias" : {
72
- "dev-master" : " 11.0.x-dev"
73
70
}
74
71
},
75
72
"minimum-stability" : " dev" ,
Original file line number Diff line number Diff line change @@ -85,8 +85,8 @@ public function buildTagArray($tags): array
85
85
);
86
86
} else {
87
87
throw new \ErrorException (
88
- __CLASS__ . ':: ' . __METHOD__ . ' expects parameter 1 to be string, array, Tag or Collection; ' .
89
- gettype ($ tags ) . ' given '
88
+ __CLASS__ . ':: ' . __METHOD__ . ' expects parameter 1 to be string, array, Tag or Collection; '
89
+ . gettype ($ tags ) . ' given '
90
90
);
91
91
}
92
92
@@ -320,8 +320,8 @@ private function getQualifiedTagTableName(): string
320
320
/** @var Tag $tag */
321
321
$ tag = new $ this ->tagModel ();
322
322
323
- return $ tag ->getConnection ()->getTablePrefix () .
324
- $ tag ->getTable ();
323
+ return $ tag ->getConnection ()->getTablePrefix ()
324
+ . $ tag ->getTable ();
325
325
}
326
326
327
327
/**
@@ -341,8 +341,8 @@ public function getMorphClass()
341
341
}
342
342
};
343
343
344
- return $ instance ->tags ()->getConnection ()->getTablePrefix () .
345
- $ instance ->tags ()->getTable ();
344
+ return $ instance ->tags ()->getConnection ()->getTablePrefix ()
345
+ . $ instance ->tags ()->getTable ();
346
346
}
347
347
348
348
private function getClassTaggableType ($ class ): string
Original file line number Diff line number Diff line change @@ -463,8 +463,8 @@ private function getQualifiedRelatedPivotKeyNameWithAlias(string $alias): string
463
463
{
464
464
$ morph = $ this ->tags ();
465
465
466
- return $ morph ->getTable () . '_ ' . $ alias .
467
- '. ' . $ morph ->getRelatedPivotKeyName ();
466
+ return $ morph ->getTable () . '_ ' . $ alias
467
+ . '. ' . $ morph ->getRelatedPivotKeyName ();
468
468
}
469
469
470
470
/**
@@ -474,8 +474,8 @@ private function getQualifiedForeignPivotKeyNameWithAlias(string $alias): string
474
474
{
475
475
$ morph = $ this ->tags ();
476
476
477
- return $ morph ->getTable () . '_ ' . $ alias .
478
- '. ' . $ morph ->getForeignPivotKeyName ();
477
+ return $ morph ->getTable () . '_ ' . $ alias
478
+ . '. ' . $ morph ->getForeignPivotKeyName ();
479
479
}
480
480
481
481
/**
You can’t perform that action at this time.
0 commit comments