19 lines
352 B
PHP
19 lines
352 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
namespace Laravel\Sanctum\Http\Controllers;
|
||
|
|
|
||
|
|
use Illuminate\Http\Response;
|
||
|
|
|
||
|
|
class CsrfCookieController
|
||
|
|
{
|
||
|
|
/**
|
||
|
|
* Return an empty response simply to trigger the storage of the CSRF cookie in the browser.
|
||
|
|
*
|
||
|
|
* @return \Illuminate\Http\Response
|
||
|
|
*/
|
||
|
|
public function show()
|
||
|
|
{
|
||
|
|
return new Response('', 204);
|
||
|
|
}
|
||
|
|
}
|