skip to Main Content

creating model class for my table class in laravel

I have created a table like: public function up(): void { Schema::create('image_sliders', function (Blueprint $table) { $table->id('image_sliders_id'); $table->text('body')->nullable(); $table->string('image'); $table->boolean('status')->default(1); $table->timestamps(); }); } Now I want to create respective Model class for my table. I am confused that in some…

VIEW QUESTION

API Password Change Issue – Laravel 11.x

I'm working on a Laravel project, and I've created a password change API. Here's the route I'm using: Route::post('/change-password', function (Request $request) { // Validate the request data $request->validate([ 'current_password' => 'required|string', 'new_password' => 'required|string|confirmed|min:8', ]); // Check if the…

VIEW QUESTION
Back To Top
Search