You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$app->response()->redirect('/example'); // path within the app
196
+
$app->response()->redirect(['example']); // redirect with route name
197
+
$app->response()->redirect('https://example.com'); // redirect to external URL
194
198
```
195
199
200
+
:::
201
+
196
202
### File download responses
197
203
198
204
It's not so unusual to want to send a file to the user for download. You can create a file download response using the `download()` method. This method accepts 3 parameters:
@@ -203,13 +209,13 @@ It's not so unusual to want to send a file to the user for download. You can cre
0 commit comments