So I have a problem, because I want to secure my POST form against CSRF, but I can't do that, I can't fetch the csrf token (via csrf_token()), no errors, returns empty string, what's the problem? (Middlewares enabled etc., googled a lot)
Doesn't change anything. I just can't get CSRF token, not in view (csrf_token() function) or in controller (csrf_token()), there are no errors etc. but If I submit my form I get an error about csrf token mismatch
In your bootstrap/app.php you have have to uncomment at least the lines with StartSession and VerifyCsrfToken to get the csrf_token function to spit out a token.