applicant-site/app/Helpers/PositionHelper.php

15 lines
240 B
PHP
Raw Normal View History

<?php
namespace App\Helpers;
use App\Models\Faculty;
class PositionHelper
{
public static function faculty()
{
$maxPosition = Faculty::max('position');
return $maxPosition >= 254 ? 255 : $maxPosition + 1;
}
}