Skip to main content

Black Friday 2025! Only until December 1st: coupon FRIDAY25 for 40% off Yearly/Lifetime membership!

Read more here

Gummibeer/gummibeer.de

11 stars
1 code files
View Gummibeer/gummibeer.de on GitHub

app/Post.php

Open in GitHub
use App\Services\Model;
 
final class Post extends Model
{
public function categories(): Collection
{
return collect($this->categories)
->map(fn (string $slug): array => ['slug' => $slug])
->mapInto(Category::class);
}
}

We'd Love Your Feedback

Tell us what you like or what we can improve

Feel free to share anything you like or dislike about this page or the platform in general.