File manager - Edit - /var/www/html/pcadigital/api/app/Repositories/FollowerRepository.php
Back
<?php namespace App\Repositories; use App\Models\Follower; use Illuminate\Support\Facades\DB; class FollowerRepository { public function findUser(string $id) { return Follower::where('auth_uuid', $id)->first(); } public function findOccurrenceByFollower(int $occurrenceId, int $followerId) { return DB::table('occurrences') ->join('occurrence_followers', 'occurrence_followers.occurrence_id', '=', 'occurrences.id') ->where('occurrence_followers.follower_id', $followerId) ->where('occurrence_followers.occurrence_id', $occurrenceId) ->get(); } }
| ver. 1.4 |
Github
|
.
| PHP 8.3.28 | Generation time: 0.02 |
proxy
|
phpinfo
|
Settings