File tree 3 files changed +5
-5
lines changed
3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ public function form(): Builder\Block
28
28
->required ()
29
29
->options (
30
30
// @phpstan-ignore-next-line
31
- \LaraZeus \Sky \SkyPlugin::get ()->getTagModel ( )::query ()
31
+ \LaraZeus \Sky \SkyPlugin::get ()->getModel ( ' Tag ' )::query ()
32
32
->where ('type ' , 'faq ' )
33
33
->get ()
34
34
->pluck ('name ' , 'slug ' )
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ public function form(): Builder\Block
28
28
->required ()
29
29
->options (
30
30
// @phpstan-ignore-next-line
31
- \LaraZeus \Sky \SkyPlugin::get ()->getTagModel ( )::query ()
31
+ \LaraZeus \Sky \SkyPlugin::get ()->getModel ( ' Tag ' )::query ()
32
32
->where ('type ' , 'library ' )
33
33
->get ()
34
34
->pluck ('name ' , 'slug ' )
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ public function form(): Builder\Block
46
46
47
47
Select::make ('category ' )
48
48
// @phpstan-ignore-next-line
49
- ->options (\LaraZeus \Sky \SkyPlugin::get ()->getTagModel ( )::query ()
49
+ ->options (\LaraZeus \Sky \SkyPlugin::get ()->getModel ( ' Tag ' )::query ()
50
50
->withType ('category ' )
51
51
->pluck ('name ' , 'id ' )),
52
52
@@ -61,11 +61,11 @@ public function form(): Builder\Block
61
61
public function viewData (array $ data ): array
62
62
{
63
63
// @phpstan-ignore-next-line
64
- $ posts = \LaraZeus \Sky \SkyPlugin::get ()->getPostModel ( )::query ();
64
+ $ posts = \LaraZeus \Sky \SkyPlugin::get ()->getModel ( ' Post ' )::query ();
65
65
66
66
if ($ data ['category ' ] !== null ) {
67
67
// @phpstan-ignore-next-line
68
- $ category = \LaraZeus \Sky \SkyPlugin::get ()->getTagModel ( )::where ('type ' , 'category ' )->find ($ data ['category ' ]);
68
+ $ category = \LaraZeus \Sky \SkyPlugin::get ()->getModel ( ' Tag ' )::where ('type ' , 'category ' )->find ($ data ['category ' ]);
69
69
if ($ category !== null ) {
70
70
$ posts = $ category ->postsPublished ();
71
71
}
You can’t perform that action at this time.
0 commit comments