feat: integrate Spotify API for syncing music productions with new command and UI components
This commit is contained in:
@@ -15,7 +15,7 @@ class MusicProductionController extends Controller
|
||||
{
|
||||
// Get Settings
|
||||
$settings = new \stdClass();
|
||||
$allSettings = Setting::where('is_active', true)->get();
|
||||
$allSettings = Setting::where('is_active', '=', true, 'and')->get();
|
||||
foreach ($allSettings as $setting) {
|
||||
$settings->{$setting->key} = $setting->value;
|
||||
}
|
||||
@@ -78,7 +78,7 @@ class MusicProductionController extends Controller
|
||||
|
||||
// Get Settings
|
||||
$settings = new \stdClass();
|
||||
$allSettings = Setting::where('is_active', true)->get();
|
||||
$allSettings = Setting::where('is_active', '=', true, 'and')->get();
|
||||
foreach ($allSettings as $setting) {
|
||||
$settings->{$setting->key} = $setting->value;
|
||||
}
|
||||
@@ -147,7 +147,7 @@ class MusicProductionController extends Controller
|
||||
$meta = [
|
||||
'title' => $production->translate('title'),
|
||||
'description' => \Str::limit(strip_tags($production->translate('content')), 160),
|
||||
'image' => $production->cover_image ? asset('storage/' . $production->cover_image) : null,
|
||||
'image' => $production->cover_image_url,
|
||||
];
|
||||
|
||||
return view('front.music-productions.show', compact('production', 'prev', 'next', 'settings', 'renderedHeader', 'renderedFooter', 'meta'));
|
||||
|
||||
Reference in New Issue
Block a user