File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ public function getProfilePhotoUrlAttribute(): string
1515 return $ this ->getFirstMediaUrl ('avatar ' );
1616 }
1717
18- $ social_avatar = $ this ->providers () ->where ('provider ' , $ this ->avatar_type )->first ();
18+ $ social_avatar = $ this ->providers ->where ('provider ' , $ this ->avatar_type )->first ();
1919
2020 if ($ social_avatar && strlen ($ social_avatar ->avatar )) {
2121 return $ social_avatar ->avatar ;
Original file line number Diff line number Diff line change @@ -10,15 +10,14 @@ trait WithArticleAttributes
1010 public ?string $ slug = null ;
1111 public string $ body = '' ;
1212 public ?string $ canonical_url = null ;
13- public bool $ show_toc = true ;
14- public bool $ submitted = true ;
13+ public bool $ show_toc = false ;
1514 public ?string $ submitted_at = null ;
1615 public ?string $ approved_at = null ;
1716 public $ file ;
1817
1918 protected $ rules = [
20- 'title ' => [ 'required ' , ' max:150 '] ,
21- 'body ' => [ 'required ' ] ,
19+ 'title ' => 'required| max:150 ' ,
20+ 'body ' => 'required ' ,
2221 'tags_selected ' => 'nullable|array ' ,
2322 'canonical_url ' => 'nullable|url ' ,
2423 'file ' => 'nullable|image|max:2048 ' , // 1MB Max
You can’t perform that action at this time.
0 commit comments