SelectFilter::make('tags') ->label('Tags') ->getOptionLabelFromRecordUsing(fn($record) => $record['name'] ) ->multiple() ->preload() ->forceSearchCaseInsensitive() ->relationship('tags', 'name'),
namespace App\Http\Middleware;use Closure;use Illuminate\Http\Request;class EnsureUserIsActive{ public function handle(Request $request, Closure $next) { if (!$request->user()->isActive()) { \Session::flush(); abort(403, 'Your account is inactive.'); } else { return $next($request); } }}
->authMiddleware([ Authenticate::class, EnsureUserIsActive::class, ])
SelectFilter::make('tags') ->label('Tags') ->multiple() ->preload() ->forceSearchCaseInsensitive() ->relationship('tags', 'name'),
class Contact extends Model{ use HasFactory, HasTags
npm cinpm run build