代码错误修复
This commit is contained in:
parent
6803b0e05d
commit
80c6135711
|
|
@ -96,7 +96,7 @@ class AttributeRepo
|
||||||
return $attributeValue;
|
return $attributeValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function deleteValue($id)
|
public static function deleteValue($id)
|
||||||
{
|
{
|
||||||
AttributeValue::query()->findOrFail($id)->delete();
|
AttributeValue::query()->findOrFail($id)->delete();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,8 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
use Illuminate\Support\Facades\Route;
|
||||||
|
use Illuminate\Support\Facades\URL;
|
||||||
|
|
||||||
if (! function_exists('isActive')) {
|
if (! function_exists('isActive')) {
|
||||||
/**
|
/**
|
||||||
* Set the active class to the current opened menu.
|
* Set the active class to the current opened menu.
|
||||||
|
|
@ -19,5 +22,7 @@ if (! function_exists('isActive')) {
|
||||||
if (strpos(URL::current(), $route)) {
|
if (strpos(URL::current(), $route)) {
|
||||||
return $className;
|
return $className;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return '';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -302,16 +302,19 @@ class Plugin implements Arrayable, \ArrayAccess
|
||||||
return Arr::has($this->packageInfo, $key);
|
return Arr::has($this->packageInfo, $key);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[\ReturnTypeWillChange]
|
||||||
public function offsetGet($key)
|
public function offsetGet($key)
|
||||||
{
|
{
|
||||||
return $this->packageInfoAttribute($key);
|
return $this->packageInfoAttribute($key);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[\ReturnTypeWillChange]
|
||||||
public function offsetSet($key, $value)
|
public function offsetSet($key, $value)
|
||||||
{
|
{
|
||||||
return Arr::set($this->packageInfo, $key, $value);
|
return Arr::set($this->packageInfo, $key, $value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[\ReturnTypeWillChange]
|
||||||
public function offsetUnset($key)
|
public function offsetUnset($key)
|
||||||
{
|
{
|
||||||
unset($this->packageInfo[$key]);
|
unset($this->packageInfo[$key]);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue