tabelle ai_model_api_provider entfernt

This commit is contained in:
2025-08-29 14:09:01 +02:00
parent 9b1f6a479f
commit d271f256b7
11 changed files with 47 additions and 103 deletions

View File

@@ -11,11 +11,11 @@ class StyleController extends Controller
{
public function index()
{
$styles = Style::with(['aiModel.apiProviders'])
$styles = Style::with(['aiModel.primaryApiProvider'])
->where('enabled', true)
->whereHas('aiModel', function ($query) {
$query->where('enabled', true);
$query->whereHas('apiProviders', function ($query) {
$query->whereHas('primaryApiProvider', function ($query) {
$query->where('enabled', true);
});
})