feat(app): fresh module-platform, provider, middleware, rule and support implementation

This commit is contained in:
Darko Gjorgjijoski
2026-08-21 14:15:49 +02:00
parent 56cb653a2d
commit 7d5f29a1d4
24 changed files with 1580 additions and 0 deletions
@@ -0,0 +1,32 @@
<?php
namespace App\Http\Middleware;
use Illuminate\Foundation\Http\Middleware\PreventRequestForgery as FrameworkPreventRequestForgery;
/**
* Application hook into the framework's CSRF token check.
*
* Only two endpoints opt out, both of them credential posts that are reached
* before a session token can reasonably be in hand.
*/
class PreventRequestForgery extends FrameworkPreventRequestForgery
{
/**
* Whether responses carry the readable XSRF-TOKEN cookie the SPA reads
* back when signing its own requests.
*
* @var bool
*/
protected $addHttpCookie = true;
/**
* Request paths the token check skips.
*
* @var array<int, string>
*/
protected $except = [
'login',
'installation/session-login',
];
}