From 03badb224ca1a1899fa89d91ca22e58809a89250 Mon Sep 17 00:00:00 2001 From: Tina Hammar Date: Tue, 19 Nov 2024 10:59:34 +0100 Subject: [PATCH] add mobileDevice() blade directive --- src/LaravelWindowSizeServiceProvider.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/LaravelWindowSizeServiceProvider.php b/src/LaravelWindowSizeServiceProvider.php index f4f2ec9..67c8f88 100644 --- a/src/LaravelWindowSizeServiceProvider.php +++ b/src/LaravelWindowSizeServiceProvider.php @@ -63,5 +63,7 @@ protected function bladeDirectives(): void Blade::if('windowXl', static fn () => windowXl()); Blade::if('window2xl', static fn () => window2xl()); + + Blade::if('mobileDevice', static fn () => mobileDevice()); } }