You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
pixelfed/app/Services/BookmarkService.php

17 lines
388 B
PHP

<?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();
// });
}
}