10 | {{ message }} 11 |
12 |
9 |
Title:-{{$posts->title}}
13 |Description :- {{$posts->description}}
14 | 15 |Name:- {{$posts->creator->name}}
17 |Email :- {{$posts->creator->email}}
18 |Created at :- {{$posts->created_at}}
19 | @endforeach 20 | 21 | -------------------------------------------------------------------------------- /public/.htaccess: -------------------------------------------------------------------------------- 1 |{{$user->post[0]->title}}
--}} 11 | 12 |name:-{{$user->name}}
14 |email :- {{$user->email}}
15 |title:- {{$post->title}}
18 |creator name:- {{$post->creator->name}}
19 |description :- {{$post->description}}
20 |creator :- {{$post->created_at}}
21 |********************************
22 | @endforeach 23 | 24 | 25 | -------------------------------------------------------------------------------- /database/migrations/2023_02_28_114728_create_posts_table.php: -------------------------------------------------------------------------------- 1 | id(); 16 | $table->string('title'); 17 | $table->foreignId('creator_id')->constrained(); 18 | $table->text('description'); 19 | $table->timestamps(); 20 | }); 21 | } 22 | 23 | /** 24 | * Reverse the migrations. 25 | */ 26 | public function down(): void 27 | { 28 | Schema::dropIfExists('posts'); 29 | } 30 | }; 31 | -------------------------------------------------------------------------------- /app/Actions/Fortify/ResetUserPassword.php: -------------------------------------------------------------------------------- 1 | $input 18 | */ 19 | public function reset(creator $user, array $input): void 20 | { 21 | Validator::make($input, [ 22 | 'password' => $this->passwordRules(), 23 | ])->validate(); 24 | 25 | $user->forceFill([ 26 | 'password' => Hash::make($input['password']), 27 | ])->save(); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /resources/js/app.js: -------------------------------------------------------------------------------- 1 | import './bootstrap'; 2 | import '../css/app.css'; 3 | 4 | import { createApp, h } from 'vue'; 5 | import { createInertiaApp } from '@inertiajs/vue3'; 6 | import { resolvePageComponent } from 'laravel-vite-plugin/inertia-helpers'; 7 | import { ZiggyVue } from '../../vendor/tightenco/ziggy/dist/vue.m'; 8 | 9 | const appName = window.document.getElementsByTagName('title')[0]?.innerText || 'Laravel'; 10 | 11 | createInertiaApp({ 12 | title: (title) => `${title} - ${appName}`, 13 | resolve: (name) => resolvePageComponent(`./Pages/${name}.vue`, import.meta.glob('./Pages/**/*.vue')), 14 | setup({ el, App, props, plugin }) { 15 | return createApp({ render: () => h(App, props) }) 16 | .use(plugin) 17 | .use(ZiggyVue, Ziggy) 18 | .mount(el); 19 | }, 20 | progress: { 21 | color: '#4B5563', 22 | }, 23 | }); 24 | -------------------------------------------------------------------------------- /resources/js/Components/NavLink.vue: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 19 |31 | {{ message }} 32 |
33 |