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