Skip to content

Commit

Permalink
🐛 load all operators in TripCreationForm
Browse files Browse the repository at this point in the history
  • Loading branch information
MrKrisKrisu committed Jan 1, 2025
1 parent f5c9911 commit 5104fb8
Show file tree
Hide file tree
Showing 3 changed files with 283 additions and 271 deletions.
2 changes: 1 addition & 1 deletion app/Http/Controllers/API/v1/OperatorController.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@ class OperatorController extends Controller
* @return AnonymousResourceCollection
*/
public function index(): AnonymousResourceCollection {
return OperatorResource::collection(HafasOperator::orderBy('name')->cursorPaginate(100));
return OperatorResource::collection(HafasOperator::orderBy('name')->cursorPaginate(250));
}
}
2 changes: 2 additions & 0 deletions database/seeders/DatabaseSeeder.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace Database\Seeders;

use App\Models\EventSuggestion;
use App\Models\HafasOperator;
use App\Models\Trip;
use App\Models\Station;
use Database\Seeders\Constants\PermissionSeeder;
Expand All @@ -25,5 +26,6 @@ public function run(): void {
$this->call(CheckinSeeder::class);
$this->call(PrivacyAgreementSeeder::class);
EventSuggestion::factory(['user_id' => 1])->count(5)->create();
HafasOperator::factory()->count(300)->create();
}
}
Loading

0 comments on commit 5104fb8

Please sign in to comment.