We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 476a4ae commit 8bd945fCopy full SHA for 8bd945f
src/Response.php
@@ -259,6 +259,17 @@ public function view(string $view, array $data = [])
259
}
260
261
262
+ /**
263
+ * Render a view file if a view engine is available
264
+ *
265
+ * @param string $view The view file to render
266
+ * @param array $data The data to pass to the view
267
+ */
268
+ public function render(string $view, array $data = [])
269
+ {
270
+ $this->view($view, $data);
271
+ }
272
+
273
/**
274
* Output some data and break the application
275
*
0 commit comments