Conditions | 3 |
Paths | 2 |
Total Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
16 | public function getRouteKey() |
||
17 | { |
||
18 | $obscure = property_exists($this,'obscure') && is_array($this->obscure) ? $this->obscure : config('cortex.foundation.obscure'); |
||
19 | |||
20 | return in_array(request()->route('accessarea'), $obscure['areas']) |
||
21 | ? Hashids::encode($this->getAttribute($this->getKeyName()), random_int(1, 999)) |
||
22 | ? Hashids::encode($this->getAttribute($this->getKeyName()), $obscure['rotate'] ? random_int(1, 999) : 1) |
||
43 |