fanatic/app/helpers.php

14 lines
304 B
PHP
Raw Normal View History

2022-04-23 16:25:16 -07:00
<?php
/* ------------------------------------------------------------------------- auth_collective ---- */
// returns the currently authenticated collective
use App\Models\Collective;
if (!function_exists('auth_collective')) {
function auth_collective() : Collective
{
return auth()->user();
}
}