StatusUser.php 283 Bytes
<?php


namespace App\Classes;


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