File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1313 }
1414 ],
1515 "require" : {
16- "php" : " ^7.2" ,
17- "illuminate/support" : " ^5.0|^6.0|^7.0|^8.0"
16+ "php" : " ^7.2 | ^8.0 " ,
17+ "illuminate/support" : " ^5.0|^6.0|^7.0|^8.0|^9.0 "
1818 },
1919 "require-dev" : {
2020 "mockery/mockery" : " ^1.3.1" ,
21- "codeclimate/php-test-reporter " : " dev-master "
21+ "phpunit/phpunit " : " ^9.5 "
2222 },
2323 "autoload" : {
2424 "psr-4" : {
Original file line number Diff line number Diff line change @@ -16,22 +16,22 @@ class Term extends \Eloquent
1616
1717 public function termRelation ()
1818 {
19- return $ this ->morphMany (' Trexology\Taxonomy\Models\ TermRelation' , 'relationable ' );
19+ return $ this ->morphMany (TermRelation::class , 'relationable ' );
2020 }
2121
2222 public function vocabulary ()
2323 {
24- return $ this ->belongsTo (' Trexology\Taxonomy\Models\ Vocabulary' );
24+ return $ this ->belongsTo (Vocabulary::class );
2525 }
2626
2727 public function childrens ()
2828 {
29- return $ this ->hasMany (' Trexology\Taxonomy\Models\ Term' , 'parent ' , 'id ' )
29+ return $ this ->hasMany (Term::class , 'parent ' , 'id ' )
3030 ->orderBy ('weight ' , 'ASC ' );
3131 }
3232
3333 public function parentTerm ()
3434 {
35- return $ this ->hasOne (' Trexology\Taxonomy\Models\ Term' , 'id ' , 'parent ' );
35+ return $ this ->hasOne (Term::class , 'id ' , 'parent ' );
3636 }
3737}
Original file line number Diff line number Diff line change @@ -18,6 +18,6 @@ public function relationable()
1818
1919 public function term ()
2020 {
21- return $ this ->belongsTo (' Trexology\Taxonomy\Models\ Term' );
21+ return $ this ->belongsTo (Term::class );
2222 }
2323}
Original file line number Diff line number Diff line change @@ -16,11 +16,11 @@ class Vocabulary extends \Eloquent
1616
1717 public function terms ()
1818 {
19- return $ this ->HasMany (' Trexology\Taxonomy\Models\ Term' );
19+ return $ this ->HasMany (Term::class );
2020 }
2121
2222 public function relations ()
2323 {
24- return $ this ->HasMany (' Trexology\Taxonomy\Models\ TermRelation' );
24+ return $ this ->HasMany (TermRelation::class );
2525 }
2626}
You can’t perform that action at this time.
0 commit comments