array_get deprecated
This commit is contained in:
parent
c941fcb148
commit
34c0380c99
@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
namespace App\Classes;
|
namespace App\Classes;
|
||||||
|
|
||||||
|
use Illuminate\Support\Arr;
|
||||||
|
|
||||||
class SSL
|
class SSL
|
||||||
{
|
{
|
||||||
// Our CSR
|
// Our CSR
|
||||||
@ -29,7 +31,7 @@ class SSL
|
|||||||
|
|
||||||
private function cn()
|
private function cn()
|
||||||
{
|
{
|
||||||
$subject = array_get($this->crt,'subject');
|
$subject = Arr::get($this->crt,'subject');
|
||||||
|
|
||||||
if (! $subject AND $this->csr_pem) {
|
if (! $subject AND $this->csr_pem) {
|
||||||
$subject = openssl_csr_get_subject($this->csr_pem);
|
$subject = openssl_csr_get_subject($this->csr_pem);
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
namespace App\Models;
|
namespace App\Models;
|
||||||
|
|
||||||
use Illuminate\Database\Eloquent\Model;
|
use Illuminate\Database\Eloquent\Model;
|
||||||
|
use Illuminate\Support\Arr;
|
||||||
|
|
||||||
class InvoiceItem extends Model
|
class InvoiceItem extends Model
|
||||||
{
|
{
|
||||||
@ -68,7 +69,7 @@ class InvoiceItem extends Model
|
|||||||
);
|
);
|
||||||
|
|
||||||
default:
|
default:
|
||||||
return array_get($types,$this->item_type,'Unknown');
|
return Arr::get($types,$this->item_type,'Unknown');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4,7 +4,6 @@ namespace App\Models;
|
|||||||
|
|
||||||
use Illuminate\Database\Eloquent\Model;
|
use Illuminate\Database\Eloquent\Model;
|
||||||
use Illuminate\Support\Arr;
|
use Illuminate\Support\Arr;
|
||||||
use Illuminate\Support\Facades\Auth;
|
|
||||||
use Illuminate\Http\Request;
|
use Illuminate\Http\Request;
|
||||||
|
|
||||||
use App\Traits\NextKey;
|
use App\Traits\NextKey;
|
||||||
@ -68,13 +67,13 @@ class Product extends Model
|
|||||||
|
|
||||||
public function getDefaultBillingAttribute()
|
public function getDefaultBillingAttribute()
|
||||||
{
|
{
|
||||||
return array_get($this->PricePeriods(),$this->price_recurr_default);
|
return Arr::get($this->PricePeriods(),$this->price_recurr_default);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getDefaultCostAttribute()
|
public function getDefaultCostAttribute()
|
||||||
{
|
{
|
||||||
// @todo Integrate this into a Tax::class
|
// @todo Integrate this into a Tax::class
|
||||||
return array_get($this->price_array,sprintf('%s.1.price_base',$this->price_recurr_default))*1.1;
|
return Arr::get($this->price_array,sprintf('%s.1.price_base',$this->price_recurr_default))*1.1;
|
||||||
}
|
}
|
||||||
|
|
||||||
private function getDefaultLanguage()
|
private function getDefaultLanguage()
|
||||||
@ -102,7 +101,7 @@ class Product extends Model
|
|||||||
8=>1/60,
|
8=>1/60,
|
||||||
];
|
];
|
||||||
|
|
||||||
return $this->setup_cost + ( $this->default_cost * array_get($table,$this->price_recurr_default) * $this->contract_term);
|
return $this->setup_cost + ( $this->default_cost * Arr::get($table,$this->price_recurr_default) * $this->contract_term);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getNameAttribute(Language $lo=NULL)
|
public function getNameAttribute(Language $lo=NULL)
|
||||||
@ -148,7 +147,7 @@ class Product extends Model
|
|||||||
public function getSetupCostAttribute()
|
public function getSetupCostAttribute()
|
||||||
{
|
{
|
||||||
// @todo Integrate this into a Tax::class
|
// @todo Integrate this into a Tax::class
|
||||||
return array_get($this->price_array,sprintf('%s.1.price_setup',$this->price_recurr_default))*1.1;
|
return Arr::get($this->price_array,sprintf('%s.1.price_setup',$this->price_recurr_default))*1.1;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function scopeActive()
|
public function scopeActive()
|
||||||
|
@ -40,7 +40,7 @@
|
|||||||
<th>Order Details</th><td>{!! $o->order_info_details !!}</td>
|
<th>Order Details</th><td>{!! $o->order_info_details !!}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Reference:</th><td><input type="text" name="notes" class="" value="{{ array_get($o->order_info,'order_reference','') }}"></td>
|
<th>Reference:</th><td><input type="text" name="notes" class="" value="{{ \Illuminate\Support\Arr::get($o->order_info,'order_reference','') }}"></td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
@ -40,7 +40,7 @@
|
|||||||
<th>Order Details</th><td>{!! $o->order_info_details !!}</td>
|
<th>Order Details</th><td>{!! $o->order_info_details !!}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Reference:</th><td>{{ array_get($o->order_info,'order_reference','') }}</td>
|
<th>Reference:</th><td>{{ \Illuminate\Support\Arr::get($o->order_info,'order_reference','') }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
@ -37,7 +37,7 @@
|
|||||||
@foreach ($so->top_menu as $item => $menu)
|
@foreach ($so->top_menu as $item => $menu)
|
||||||
<li class="dropdown {{ Request::is($menu['url']) ? 'active' : '' }}">
|
<li class="dropdown {{ Request::is($menu['url']) ? 'active' : '' }}">
|
||||||
|
|
||||||
@if (! array_get($menu,'children'))
|
@if (! \Illuminate\Support\Arr::get($menu,'children'))
|
||||||
<a {{ Request::is($menu['url']) ? 'class=active' : '' }} href="{{ url($menu['url']) }}">{{ $menu['name'] }}</a>
|
<a {{ Request::is($menu['url']) ? 'class=active' : '' }} href="{{ url($menu['url']) }}">{{ $menu['name'] }}</a>
|
||||||
@else
|
@else
|
||||||
<a class="dropdown-toggle" data-toggle="dropdown" data-target="#" href="javascript:;">{{ $item }}</a>
|
<a class="dropdown-toggle" data-toggle="dropdown" data-target="#" href="javascript:;">{{ $item }}</a>
|
||||||
|
Loading…
Reference in New Issue
Block a user