From 5e6281b556a2457e7815a66a9163108caf0cacf9 Mon Sep 17 00:00:00 2001 From: Nasrul Hazim Bin Mohamad Date: Tue, 25 Oct 2022 12:16:05 +0800 Subject: [PATCH] Fixed test --- src/Http/Controllers/MediaController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Http/Controllers/MediaController.php b/src/Http/Controllers/MediaController.php index 3064db9..45eae0e 100644 --- a/src/Http/Controllers/MediaController.php +++ b/src/Http/Controllers/MediaController.php @@ -19,7 +19,7 @@ public function __invoke(Request $request, string $type, string $uuid) { abort_if(! MediaAccess::acceptable($type), 422, 'Invalid request type of '.$type); - $media = config('media-library.media_model')::whereUuid($uuid)->firstOrFail(); + $media = config('laravel-media-secure.model')::whereUuid($uuid)->firstOrFail(); abort_if($request->user()->cannot($type, $media), 403, 'Unauthorized Access.');