Skip to content

Instantly share code, notes, and snippets.

View colbyalbo's full-sized avatar
🚀
Coding

ColbyAlbo colbyalbo

🚀
Coding
View GitHub Profile
@colbyalbo
colbyalbo / image.php
Created January 1, 2023 22:22
Laravel - Restrict viewing of images from local storage
<?php
//confg filesystems
'secure_images' => [
'driver' => 'local',
'root' => storage_path('app/secure/images'),
'url' => env('APP_URL') . '/secure/images',
'visibility' => 'private',
],
//route file