skip to Main Content

How to send a primary key as a foreign key to another table while submitting the form in Laravel vue?

I have these 2 tables: Table one(parties): public function up() { Schema::create('parties', function (Blueprint $table) { $table->id(); $table->string('full_name'); $table->string('ic_passport'); $table->string('nationality'); $table->string('income_tax_no'); $table->string('income_Tax_filing_branch'); $table->string('phone_no'); $table->string('email'); $table->timestamps(); }); } Table two(corraddresses): public function up() { Schema::create('corraddresses', function (Blueprint $table) { $table->id(); $table->unsignedBigInteger('party_id');…

VIEW QUESTION

I want to send password reset request to laravel API from vue.js component – PHP Versions

I am making laravel API to reset password by diverting laravel standard password reset function. This is controller <?php namespace AppHttpControllersApiAuth; use AppHttpControllersController; use IlluminateFoundationAuthResetsPasswords; use IlluminateHttpRequest; use IlluminateSupportFacadesPassword; use IlluminateSupportFacadesLog; class ResetPasswordController extends Controller { use ResetsPasswords; public function…

VIEW QUESTION

Laravel Inertia Vue

I`m new to laravel and i try to do a crud tutorial but donesn t work the update method. This is the controller public function update(UserRequest $request, User $user) { $avatar = $user->avatar; if(Request::file('avatar')){ Storage::delete('public/'. $user->avatar); $avatar = Request::file('avatar')->store('users', 'public');…

VIEW QUESTION
Back To Top
Search