File tree Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 2
2
3
3
namespace App \Http \Controllers ;
4
4
5
- use App \Http \Controllers \Controller ;
6
5
use App \Models \Channel ;
7
6
use App \Models \Thread ;
8
7
use Illuminate \Http \Request ;
Original file line number Diff line number Diff line change @@ -22,12 +22,12 @@ public function failedValidation(Validator $validator): JsonResponse
22
22
foreach ($ validator ->errors () as $ field => $ message ) {
23
23
$ transformed [] = [
24
24
'field ' => $ field ,
25
- 'message ' => $ message [0 ]
25
+ 'message ' => $ message [0 ],
26
26
];
27
27
}
28
28
29
29
return response ()->json ([
30
- 'errors ' => $ transformed
30
+ 'errors ' => $ transformed,
31
31
], JsonResponse::HTTP_UNPROCESSABLE_ENTITY );
32
32
}
33
33
}
Original file line number Diff line number Diff line change 4
4
5
5
use App \Models \Tag ;
6
6
7
- trait WithTags {
7
+ trait WithTags
8
+ {
8
9
public ?string $ tag = null ;
9
10
public string $ sortBy = 'recent ' ;
10
11
Original file line number Diff line number Diff line change 2
2
3
3
use App \Http \Controllers \ArticlesController ;
4
4
use App \Http \Controllers \DiscussionController ;
5
- use App \Http \Controllers \ThreadController ;
6
5
use App \Http \Controllers \HomeController ;
7
6
use App \Http \Controllers \OAuthController ;
8
7
use App \Http \Controllers \SubscriptionController ;
8
+ use App \Http \Controllers \ThreadController ;
9
9
use App \Http \Controllers \User ;
10
10
use Illuminate \Support \Facades \Route ;
11
11
You can’t perform that action at this time.
0 commit comments