I have 2 applications under the same domain, 1 running from a PHP 5.6 server with Laravel 5.2 backend & Angular2 frontend, and the other with a custom framework on a PHP 5.3 server with flat javascript frontend. In each application I have a csrf token. The older server (5.3) has a custom csrf generator, but the laravel one uses laravel's VerifyCsrfToken.php middleware.
I occasionally need to call an old API from the angular2 frontend, but the csrf tokens do not match. How do I implement a custom csrf token generator in laravel?