Skip to content

Commit

Permalink
👍 Report video
Browse files Browse the repository at this point in the history
  • Loading branch information
juzaweb committed Nov 4, 2023
1 parent 21537e6 commit c1369d2
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/Http/Requests/ReportRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,10 @@ public function rules(): array
],
'post_id' => [
'required',
Rule::modelExists(
Post::class,
'id',
fn($q) => $q->where('type', 'movies')
),
Rule::modelExists(Post::class),
],
'video_id' => [
'required',
'nullable',
Rule::modelExists(
Resource::class,
'id',
Expand Down

0 comments on commit c1369d2

Please sign in to comment.