Closed mpyw closed 4 years ago
\Request
\Illuminate\Support\Facades\Request
\Illuminate\Http\Request
response()->noContent()
Thanks @mpyw ! Good fixes!
\Request
. It is an alias for\Illuminate\Support\Facades\Request
, not for\Illuminate\Http\Request
. Injecting Facade instances is a very strange approach.response()->noContent()
is the simplest code for returning 204 No Content.