Skip to content

Commit 060c64f

Browse files
committed
Wip
1 parent 6094b7a commit 060c64f

File tree

4 files changed

+26
-8
lines changed

4 files changed

+26
-8
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
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+
}

stubs/resources/js/Components/Menu/AppBreadCrumbItem.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
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>

stubs/resources/js/Pages/User/UserForm.vue

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,3 @@ const submitForm = () => {
9494
9595
const { errorsFields } = useFormErrors()
9696
</script>
97-
98-
<!-- <style scoped>
99-
.p-card::v-deep(.p-card-footer) {
100-
padding-top: 0;
101-
}
102-
</style> -->

stubs/site/resources-site/js/create-vue-app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { 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

44
export const createVueApp = (additionalComponents = {}) => {
55
const app = createApp({

0 commit comments

Comments
 (0)