DbView::make()->render() returns an invalid view object
rowejewett opened this issue · 0 comments
Laravel 5.6
PHP 7.1
flynsarmy/db-blade-compiler 5.4.3
Invalid view. in /var/www/html/notifier/vendor/laravel/framework/src/Illuminate/Mail/Mailer.php:298\nStack trace:\n#0 /var/www/html/notifier/vendor/laravel/framework/src/Illuminate/Mail/Mailer.php(200): Illuminate\Mail\Mailer->parseView(NULL)\n#1 /var/www/html/notifier/vendor/laravel/framework/src/Illuminate/Mail/Mailable.php(201): Illuminate\Mail\Mailer->render(NULL, Array)\n#2 /var/www/html/notifier/vendor/laravel/framework/src/Illuminate/Http/Response.php(42): Illuminate\Mail\Mailable->render()\n#3 /var/www/html/notifier/vendor/symfony/http-foundation/Response.php(202): Illuminate\Http\Response->setContent(Object(App\Mail\GenericEmail))\n#4 /var/www/html/notifier/vendor/laravel/framework/src/Illuminate/Routing/Router.php(733): Symfony\Component\HttpFoundation\Response->__construct(Object(App\Mail\GenericEmail))\n#5 /var/www/html/notifier/vendor/laravel/framework/src/Illuminate/Routing/Router.php(705)
Both forms below yield an invalid view exception when the DbView->render is returned to the caller.
public function build()
{
$this->subject( $this->communique->template->subject );
return DbView::make($this->communique->template,
$this->context, [], 'body' )
->render();
/* return DbView::make( $this->communique->template )
->field( 'body' )
->with( $this->context )
->render();
*/
}