Skip to content

Commit

Permalink
Fixed missing field for blog post in admin panel
Browse files Browse the repository at this point in the history
  • Loading branch information
dsbilling committed Feb 2, 2023
1 parent 1f98590 commit 36f2394
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/Nova/Post.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace App\Nova;

use Illuminate\Http\Request;
use Laravel\Nova\Fields\BelongsTo;
use Laravel\Nova\Fields\Boolean;
use Laravel\Nova\Fields\Date;
use Laravel\Nova\Fields\ID;
Expand Down Expand Up @@ -63,6 +64,8 @@ public function fields(NovaRequest $request)
->rules('required')
->hideFromIndex(),

BelongsTo::make('User', 'user', 'App\Nova\User'),

Tags::make('Tags'),
];
}
Expand Down

0 comments on commit 36f2394

Please sign in to comment.