Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Laravel Device Detector Laravel Package

sajidwarner/laravel-device-detector

View on GitHub
Deep Wiki
Context7
v1.4.0

What's New

  • Added Laravel 13.x support
  • Compatible with Laravel 10, 11, 12, and 13
  • PHP 8.1+ required
  • All 36 tests passing (86 assertions)
v1.3.0

LaraTrack v1.3.0 🚀

New Features

🚧 Built-in Middleware (6)

No manual registration needed — just use in routes:

  • laratrack.block-bots — Block all bots/crawlers
  • laratrack.block-tor — Block Tor connections
  • laratrack.block-vpn — Block VPN & Proxy connections
  • laratrack.mobile-only — Allow mobile devices only
  • laratrack.desktop-only — Allow desktop only
  • laratrack.block-countries:CN,RU — Block specific countries

⚡ Laravel Events

Auto-fired when threats are detected:

  • BotDetected — $request, $botName, $ip
  • TorDetected — $request, $ip
  • VpnDetected — $request, $ip, $type (vpn|proxy)

🖥️ Artisan Commands

  • php artisan laratrack:test "UA string" --ip=8.8.8.8
  • php artisan laratrack:clear-cache

🛡️ VPN & Proxy Detection

  • New is_vpn and is_proxy fields in detect() output
  • LaraTrack::isVpn() and LaraTrack::isProxy() methods

🌍 Language Detection

  • New language field in detect() output — e.g. en-US, bn-BD
  • LaraTrack::getLanguage() method

🔧 New Blade Directives

  • [@vpn](https://github.com/vpn) / [@endvpn](https://github.com/endvpn)
  • [@proxy](https://github.com/proxy) / [@endproxy](https://github.com/endproxy)

Install / Update

composer require sajidwarner/laravel-device-detector
v1.2.0

LaraTrack v1.2.0

Rebranded as LaraTrack 🎉

The package has been rebranded from Laravel Device Detector to LaraTrack for a cleaner, more memorable identity.

What Changed

  • Facade: DeviceDetector::LaraTrack::
  • Namespace: SajidWarner\DeviceDetectorSajidWarner\LaraTrack
  • Config file: device-detector.phplaratrack.php
  • Env variables: DEVICE_DETECTOR_*LARATRACK_*
  • Route: /device-detector/test/laratrack/test

Packagist name unchanged

composer require sajidwarner/laravel-device-detector
v1.0.0

Features

  • Browser detection (Chrome, Firefox, Safari, Edge, Opera, Brave, Tor, etc.)
  • Mobile device detection with brand and model
  • Tablet detection
  • Robot/Bot detection
  • Tor exit node detection
  • Platform/OS detection
  • Laravel 10+ support

Installation

composer require sajidwarner/laravel-device-detector

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
monarobase/country-list
nasirkhan/laravel-sharekit
directorytree/privacy-filter-classifier
directorytree/privacy-filter
datacore/hub-sdk
develia/commons
cuci/prototurk-sdk
cuci/prototurk-sdk-symfony
develia/geo-bundle
dreamzy/livewire-charts
touchestate-sdk/php-sdk
22h/doctrine-garbage-collection-bundle
agtp/agtp-php
agtp/mod-php
splash/sonata-admin
splash/metadata
splash/openapi
splash/scopes
splash/toolkit
testo/output-teamcity