File tree Expand file tree Collapse file tree 3 files changed +3
-5
lines changed
Expand file tree Collapse file tree 3 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ public static function indexLayout(): Layout
6161 public static function layouts (): Collection
6262 {
6363 if (! static ::customizeableLayout ()) {
64- return new Collection () ;
64+ return new Collection ;
6565 }
6666
6767 $ layoutModel = static ::layoutModel ();
Original file line number Diff line number Diff line change 44
55use Exception ;
66
7- class ContentableException extends Exception
8- {
9- }
7+ class ContentableException extends Exception {}
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ class Content extends Model implements ContentInterface
2121 protected static function boot ()
2222 {
2323 static ::saved (function (ContentInterface $ content ) {
24- $ content ->contentable ->clearCache ();
24+ $ content ->contentable ? ->clearCache();
2525 });
2626
2727 parent ::boot ();
You can’t perform that action at this time.
0 commit comments