-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Workbench Improvements #1
Conversation
Signed-off-by: Mior Muhammad Zaki <[email protected]>
Signed-off-by: Mior Muhammad Zaki <[email protected]>
Signed-off-by: Mior Muhammad Zaki <[email protected]>
Signed-off-by: Mior Muhammad Zaki <[email protected]>
{ | ||
parent::setUp(); | ||
|
||
$this->app->view->addLocation(__DIR__.'/TestSupport/Views'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now can be auto-discovered if we use workbench/resources/views
and update testbench.yaml
:
discovers:
views: true
|
||
Route::get('download-pdf', function () { | ||
return pdf('test')->download('my-custom-name.pdf'); | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Automatically available within tests and can be previewed using composer run serve
, registered to Testbench via testbench.yaml
:
discovers:
web: true
Very cool stuff, thanks! |
No description provided.