File tree Expand file tree Collapse file tree 4 files changed +26
-8
lines changed
modules/Support/Http/Requests Expand file tree Collapse file tree 4 files changed +26
-8
lines changed Original file line number Diff line number Diff line change 1+ <?php
2+
3+ namespace Modules \Support \Http \Requests ;
4+
5+ use Illuminate \Foundation \Http \FormRequest ;
6+ use Illuminate \Contracts \Validation \Validator ;
7+ use Illuminate \Http \Exceptions \HttpResponseException ;
8+
9+ abstract class JsonRequest extends FormRequest
10+ {
11+ public function authorize (): bool
12+ {
13+ return true ;
14+ }
15+
16+ protected function failedValidation (Validator $ validator ): void
17+ {
18+ throw new HttpResponseException (response ()->json ([
19+ 'errors ' => $ validator ->errors ()
20+ ], 422 ));
21+ }
22+ }
Original file line number Diff line number Diff line change 11<template >
22 <span v-if =" !item.href" class =" opacity-50" >{{ __(item.label) }}</span >
33
4- <Link v-if =" item.href" :href =" item.href" >{{ __(item.label) }}</Link >
4+ <Link v-if =" item.href" :href =" item.href" class =" hover:underline" >
5+ {{ __(item.label) }}
6+ </Link >
57
68 <span v-if =" !item.last" > > </span >
79</template >
Original file line number Diff line number Diff line change @@ -94,9 +94,3 @@ const submitForm = () => {
9494
9595const { errorsFields } = useFormErrors ()
9696 </script >
97-
98- <!-- <style scoped>
99- .p-card::v-deep(.p-card-footer) {
100- padding-top: 0;
101- }
102- </style> -->
Original file line number Diff line number Diff line change 11import { createApp } from 'vue/dist/vue.esm-bundler.js'
2- //import commonComponent from './Components/common-component.js '
2+ //import commonComponent from './Components/common-component.vue '
33
44export const createVueApp = ( additionalComponents = { } ) => {
55 const app = createApp ( {
You can’t perform that action at this time.
0 commit comments