Hi @salmi!
Welcome to the forum and thanks for using Luthier CI.
The documentation explains how to assign a middleware to a group, basically:
Route::group('site', ['middleware' => ['AuthMiddleware']], function(){
// ...
});
This is an example of a middleware definition:
<?php
# application/middleware/TestMiddleware.php
class TestMiddleware implements Luthier\MiddlewareInterface
{
public function run()
{
// ...
}
}
You can find more information here and here.