for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Thinktomorrow\Chief\Concerns\Publishable;
use Illuminate\Support\Facades\Session;
trait CheckPreviewTrait
{
public function isPreviewAllowed()
if (PreviewMode::fromRequest()->check()) {
Session::now('note.default', 'U bekijkt een preview.');
return true;
} else {
return false;
}