File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ public function form(): Builder\Block
2828 ->required ()
2929 ->options (
3030 // @phpstan-ignore-next-line
31- \LaraZeus \Sky \SkyPlugin::get ()->getTagModel ( )::query ()
31+ \LaraZeus \Sky \SkyPlugin::get ()->getModel ( ' Tag ' )::query ()
3232 ->where ('type ' , 'faq ' )
3333 ->get ()
3434 ->pluck ('name ' , 'slug ' )
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ public function form(): Builder\Block
2828 ->required ()
2929 ->options (
3030 // @phpstan-ignore-next-line
31- \LaraZeus \Sky \SkyPlugin::get ()->getTagModel ( )::query ()
31+ \LaraZeus \Sky \SkyPlugin::get ()->getModel ( ' Tag ' )::query ()
3232 ->where ('type ' , 'library ' )
3333 ->get ()
3434 ->pluck ('name ' , 'slug ' )
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ public function form(): Builder\Block
4646
4747 Select::make ('category ' )
4848 // @phpstan-ignore-next-line
49- ->options (\LaraZeus \Sky \SkyPlugin::get ()->getTagModel ( )::query ()
49+ ->options (\LaraZeus \Sky \SkyPlugin::get ()->getModel ( ' Tag ' )::query ()
5050 ->withType ('category ' )
5151 ->pluck ('name ' , 'id ' )),
5252
@@ -61,11 +61,11 @@ public function form(): Builder\Block
6161 public function viewData (array $ data ): array
6262 {
6363 // @phpstan-ignore-next-line
64- $ posts = \LaraZeus \Sky \SkyPlugin::get ()->getPostModel ( )::query ();
64+ $ posts = \LaraZeus \Sky \SkyPlugin::get ()->getModel ( ' Post ' )::query ();
6565
6666 if ($ data ['category ' ] !== null ) {
6767 // @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 ' ]);
6969 if ($ category !== null ) {
7070 $ posts = $ category ->postsPublished ();
7171 }
You can’t perform that action at this time.
0 commit comments