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
When using a Laravel controller you can simply return a chained `Builder` from the `api()` helper,
21
-
as it implements the [Responsable](https://laravel.com/api/master/Illuminate/Contracts/Support/Responsable.html) trait.
22
+
In a Laravel controller you just to build up your response and return it!
22
23
23
-
```php
24
+
The `api()` helper return a Response `Builder` and as it implements the [Responsable](https://laravel.com/api/master/Illuminate/Contracts/Support/Responsable.html)
25
+
trait you dont need to do anything more than return the builder
0 commit comments