Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Concerns/HasLayouts.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public static function indexLayout(): Layout
public static function layouts(): Collection
{
if (! static::customizeableLayout()) {
return new Collection();
return new Collection;
}

$layoutModel = static::layoutModel();
Expand Down
4 changes: 1 addition & 3 deletions src/Exceptions/ContentableException.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,4 @@

use Exception;

class ContentableException extends Exception
{
}
class ContentableException extends Exception {}
2 changes: 1 addition & 1 deletion src/Models/Content.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class Content extends Model implements ContentInterface
protected static function boot()
{
static::saved(function (ContentInterface $content) {
$content->contentable->clearCache();
$content->contentable?->clearCache();
});

parent::boot();
Expand Down