Operator or in blade php

0

I'm working on a blade template in laravel and I want to hide the menu depending on the role of the user. But I do not accept the operator or, in blade this way:

@if(! auth()->user()->is_magaly || ! auth()->user()->is_students)
     <li>
        <a href="grupos.php">Grupos</a>
      </li>
 @endif

The screen still shows me the option. The model has these 2 functions to identify the role:

 public function getIsStudentsAttribute($value)
{
    return $this->role == "4";
}

public function getIsMagalyAttribute($value)
{
    return $this->role == "5";
}

How can I make the option disappear if those roles are?

    
asked by Juan Antonio 17.05.2018 в 17:43
source

0 answers