Blame view

app/Classes/StatusUser.php 283 Bytes
a9dfa8c95   Андрей Ларионов   Обновление на 7 м...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
  <?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;
           }
       }
  }