pixelfed/app/Services/BookmarkService.php

17 lines
388 B
PHP
Raw Normal View History

2022-01-27 12:17:55 +00:00
<?php
namespace App\Services;
use App\Bookmark;
use Illuminate\Support\Facades\Cache;
class BookmarkService
{
public static function get($profileId, $statusId)
{
// return Cache::remember('pf:bookmarks:' . $profileId . ':' . $statusId, 84600, function() use($profileId, $statusId) {
return Bookmark::whereProfileId($profileId)->whereStatusId($statusId)->exists();
// });
}
}