Skip to content

Commit

Permalink
Create GetSampleCategories.php
Browse files Browse the repository at this point in the history
  • Loading branch information
danielh-official committed Nov 14, 2024
1 parent 3ef8831 commit 3391aa0
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions app/Actions/Sample/GetSampleCategories.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?php

declare(strict_types=1);

namespace App\Actions\Sample;

use App\Models\Category;
use App\Models\CategoryGroup;

class GetSampleCategories
{
public function handle()
{
return collect(CategoryGroup::factory()->count(3)->raw([
'categories' => Category::factory()->count(3)->raw(),
]));
}
}

0 comments on commit 3391aa0

Please sign in to comment.