skip to Main Content

Auth view files in Laravel 10

In a Laravel 10 project: php artisan make:auth This created User model, but nothing else. Than I published: php artisan vendor:publish --tag=laravel-auth Which outputs: No publishable resources for tag I don't see a view or route for authentication. What am…

VIEW QUESTION

Im trying to update database record using update() laravel

Controller: public function updateTeachers(Request $request, User $teachers){ $validated = $request->validate([ "name" => ['required'], "email" => ['required'], ]); $teachers->update($validated); return back()->with('information-message', 'Data was successfully updated'); } View: <form action="/teacher/{{ $dataTeacher->id }}" method="POST" class="bg-white divide-y dark:divide-gray-700 dark:bg-gray-80 px-4 py-3"> @method('PUT') @csrf <div…

VIEW QUESTION
Back To Top
Search