File tree Expand file tree Collapse file tree 4 files changed +25
-22
lines changed
Expand file tree Collapse file tree 4 files changed +25
-22
lines changed Original file line number Diff line number Diff line change @@ -4,3 +4,4 @@ composer.lock
44.DS_Store
55build
66.phpunit.result.cache
7+ /.idea
Original file line number Diff line number Diff line change 11{
22 "name" : " friendsofcat/taxonomy" ,
3- "description" : " Create and manage a heirarchical taxonomy of terms within different vocabularies" ,
3+ "description" : " Create and manage a hierarchical taxonomy of terms within different vocabularies" ,
44 "license" : " MIT" ,
55 "keywords" : [
66 " taxonomy" ,
1414 ],
1515 "require" : {
1616 "php" : " ^7.2" ,
17- "illuminate/support" : " ^5.0|^6.0|^7.0"
17+ "illuminate/support" : " ^5.0|^6.0|^7.0|^8.0 "
1818 },
1919 "require-dev" : {
2020 "mockery/mockery" : " ^1.3.1" ,
3535 }
3636 }
3737 }
38- }
38+ }
Original file line number Diff line number Diff line change 1+ <?php
2+
3+ namespace Trexology \Taxonomy \Composers ;
4+
5+ use Config ;
6+
7+ class TaxonomyComposer
8+ {
9+ public function compose ($ view )
10+ {
11+ $ prefix = rtrim (Config::get ('taxonomy::route_prefix ' ), '. ' ) . '. ' ;
12+
13+ $ layout = (object ) [
14+ 'extends ' => Config::get ('taxonomy::config.layout.extends ' ),
15+ 'header ' => Config::get ('taxonomy::config.layout.header ' ),
16+ 'content ' => Config::get ('taxonomy::config.layout.content ' ),
17+ ];
18+
19+ $ view ->with (['prefix ' => $ prefix , 'layout ' => $ layout ]);
20+ }
21+ }
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments