StatusUser.php 309 Bytes
<?php


namespace App\Classes;


use App\Models\Employer;

class StatusUser
{
     public static function Status() {
         if (isset(Auth()->user()->id)) {
             $is_worker = Auth()->user()->is_worker;
             return $is_worker;
         } else {
             return false;
         }
     }
}