Skip to content

Commit

Permalink
Merge branch 'main' of github.com:Naoray/nova-json into main
Browse files Browse the repository at this point in the history
  • Loading branch information
Naoray committed Feb 3, 2021
2 parents 6d99d4b + 6aa04e8 commit d30a446
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions src/JSON.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

namespace Naoray\NovaJson;

use Laravel\Nova\Makeable;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Http\Resources\MergeValue;
use Illuminate\Support\Str;
use Laravel\Nova\Fields\Field;
use Laravel\Nova\Fields\Hidden;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Http\Resources\MergeValue;
use Laravel\Nova\Http\Requests\NovaRequest;
use Laravel\Nova\Makeable;
use Naoray\NovaJson\Exceptions\AttributeCast;

class JSON extends MergeValue
Expand Down Expand Up @@ -170,7 +170,7 @@ protected function prepareField(Field $field)
return;
}

if (!$model->hasCast($this->attribute)) {
if (! $model->hasCast($this->attribute)) {
throw AttributeCast::notFoundFor($this->attribute);
}

Expand Down
4 changes: 2 additions & 2 deletions tests/JSONTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

namespace Naoray\NovaJson\Tests;

use Naoray\NovaJson\JSON;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Laravel\Nova\Fields\Text;
use Laravel\Nova\Http\Requests\NovaRequest;
use Naoray\NovaJson\Exceptions\AttributeCast;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Naoray\NovaJson\JSON;

class JSONTest extends TestCase
{
Expand Down

0 comments on commit d30a446

Please sign in to comment.