File tree 1 file changed +3
-3
lines changed 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -41,13 +41,13 @@ public function submit()
41
41
}
42
42
43
43
if ($ this ->truncate ) {
44
- $ posts = SkyPlugin::get ()->getPostModel ( )::get ();
44
+ $ posts = SkyPlugin::get ()->getModel ( ' Post ' )::get ();
45
45
$ posts ->each (function ($ item , $ key ) {
46
46
$ item ->tags ()->detach ();
47
47
$ item ->delete ();
48
48
});
49
49
Schema::disableForeignKeyConstraints ();
50
- SkyPlugin::get ()->getTagModel ( )::truncate ();
50
+ SkyPlugin::get ()->getModel ( ' Tag ' )::truncate ();
51
51
Schema::enableForeignKeyConstraints ();
52
52
53
53
Notification::make ()
@@ -77,7 +77,7 @@ public function submit()
77
77
78
78
public function savePost ($ post )
79
79
{
80
- $ zeusPost = SkyPlugin::get ()->getPostModel ( )::findOrNew ($ post ->ID );
80
+ $ zeusPost = SkyPlugin::get ()->getModel ( ' Post ' )::findOrNew ($ post ->ID );
81
81
if (! $ zeusPost ->exists || $ this ->overwrite ) {
82
82
$ zeusPost ->id = $ post ->ID ;
83
83
$ zeusPost ->title = $ post ->post_title ;
You can’t perform that action at this time.
0 commit comments