InterNACHI / modular

Modularize your Laravel application
MIT License
788 stars 65 forks source link

CSRF session #89

Closed flyzard closed 7 months ago

flyzard commented 7 months ago

Am I missing sth here or the modules are not aware of the authentication?

Please let me know what I'm missing!

flyzard commented 7 months ago

For those like me who were not aware, in order to have authorization in your module:

Route::middleware(['web'])->group(function () {
    Route::get('notifications/counter', Counter::class);
});