@@ -2,8 +2,8 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Spatie\SchemalessAttributes; |
| 4 | 4 | |
| 5 | -use Illuminate\Support\ServiceProvider; |
|
| 6 | 5 | use Illuminate\Database\Schema\Blueprint; |
| 6 | +use Illuminate\Support\ServiceProvider; |
|
| 7 | 7 | |
| 8 | 8 | class SchemalessAttributesServiceProvider extends ServiceProvider |
| 9 | 9 | { |
@@ -48,6 +48,9 @@ |
||
| 48 | 48 | $this->set($name, $value); |
| 49 | 49 | } |
| 50 | 50 | |
| 51 | + /** |
|
| 52 | + * @param string $attribute |
|
| 53 | + */ |
|
| 51 | 54 | public function set($attribute, $value = null) |
| 52 | 55 | { |
| 53 | 56 | if (is_iterable($attribute)) { |
@@ -2,12 +2,12 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Spatie\SchemalessAttributes; |
| 4 | 4 | |
| 5 | -use Countable; |
|
| 6 | 5 | use ArrayAccess; |
| 7 | -use Illuminate\Support\Arr; |
|
| 8 | -use Illuminate\Database\Eloquent\Model; |
|
| 9 | -use Illuminate\Database\Eloquent\Builder; |
|
| 6 | +use Countable; |
|
| 10 | 7 | use Illuminate\Contracts\Support\Arrayable; |
| 8 | +use Illuminate\Database\Eloquent\Builder; |
|
| 9 | +use Illuminate\Database\Eloquent\Model; |
|
| 10 | +use Illuminate\Support\Arr; |
|
| 11 | 11 | |
| 12 | 12 | class SchemalessAttributes implements ArrayAccess, Countable, Arrayable |
| 13 | 13 | { |