<?php
protected $routeMiddleware = [
    // ... other middleware
    'auth' => \App\Http\Middleware\Authenticate::class,
    'admin' => \App\Http\Middleware\AdminMiddleware::class, // Add this line
    'role' => \App\Http\Middleware\CheckRole::class,
];