Route::post('/posttest', function () {
return "post";
});
localhost:8888/posttest
The URIs that should be excluded from CSRF verification.
<?php
namespace App\Http\Middleware;
use Illuminate\Foundation\Http\Middleware\VerifyCsrfToken as Middleware;
class VerifyCsrfToken extends Middleware
{
/**
* The URIs that should be excluded from CSRF verification.
*
* @var array<int, string>
*/
protected $except = [
//
'http://localhost:8888/posttest',
];
}