for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Transmissor\Policies;
use Illuminate\Auth\Access\HandlesAuthorization;
use App\Models\User;
use App\Models\Thread;
use Gate;
class ThreadPolicy
{
use HandlesAuthorization;
public function show(User $user, Thread $thread)
return $thread->hasParticipant($user->id);
}