2022-04-23 16:25:16 -07:00
|
|
|
<?php
|
|
|
|
|
2022-04-26 20:35:32 -07:00
|
|
|
define('PER_PAGE', 7);
|
|
|
|
|
2022-04-27 19:33:19 -07:00
|
|
|
define('DATE_FMT', 'j F Y');
|
|
|
|
define('FORM_DATE_FMT', 'Y-m-d');
|
|
|
|
define('DATE_FMT_SHORT', 'j M y');
|
|
|
|
|
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();
|
|
|
|
}
|
|
|
|
}
|