|
@@ -4,6 +4,7 @@ namespace App\Admin\Repositories;
|
|
|
|
|
|
use App\Models\SitePreviewVideo as Model;
|
|
|
use Dcat\Admin\Repositories\EloquentRepository;
|
|
|
+use Illuminate\Support\Carbon;
|
|
|
use Illuminate\Support\Facades\DB;
|
|
|
|
|
|
class SitePreviewVideo extends EloquentRepository
|
|
@@ -40,8 +41,8 @@ class SitePreviewVideo extends EloquentRepository
|
|
|
'video_url' => $videoSrc,
|
|
|
'preview_url' => '',
|
|
|
'status' => 0, // Assuming status 1 means active or available
|
|
|
- 'created_at' => Corder::now(),
|
|
|
- 'updated_at' => Corder::now(),
|
|
|
+ 'created_at' => Carbon::now(),
|
|
|
+ 'updated_at' => Carbon::now(),
|
|
|
'album_id' => $album_id,
|
|
|
'remark' => '', // Optional remark, you can customize this
|
|
|
]);
|