skip to Main Content

update content of stored column in laravel controller

I have a table with 3 columns: firstname lastname fullname in migration: Schema::create('owners', function (Blueprint $table) { $table->id(); $table->string('firstname',20); $table->string('lastname', 20); $table->string('fullname')->storedAs('CONCAT(firstname,lastname)'); $table->timestamps(); }); the problem is that i want to change the concatenation order in the controller i tried…

VIEW QUESTION

Controller does not exist in laravel 5.6

I have this error where it said that the controller does not exist My routes use AppHttpControllersPasienController; Route::resource('/pasien', PasienController::class)->only(['index']); The controller <?php namespace AppHttpControllers; use AppToken; use IlluminateHttpRequest; use IlluminateSupportFacadesHttp; use IlluminateSupportFacadesSession; use IlluminateSupportFacadesValidator; use RealRashidSweetAlertFacadesAlert; class PasienController extends Controller…

VIEW QUESTION
Back To Top
Search