I have product list in database and want to mange sequence from the administrator. If i enter new product in database it will be come 1. (there is already 6 record 1,2,3,4,5,6) new product will be sequence 1. new sequence will be 1,2,3,4,5,6,7 and new record will be come on 1. if during insert new ..

Read more

i have a many-to-many relationship between two models User <?php namespace AppModels; use IlluminateDatabaseEloquentFactoriesHasFactory; use IlluminateDatabaseEloquentModel; use IlluminateFoundationAuthUser as Authenticatable; use IlluminateNotificationsNotifiable; use IlluminateNotificationsNotification; use IlluminateSupportFacadesHash; use LaravelPassportHasApiTokens; class User extends Model { use HasApiTokens, Notifiable,hasFactory; /** * The attributes that are mass assignable. * * @var array */ protected $fillable = [ ’email’, ‘password’, ..

Read more

I’m mostly a PHP backend / HTML/CSS frontend developer, so I’ve always sent images to my server from the client using either form enctype: multipart/formdata or through a FormData object when uploading through ajax requests. After that I would receive the file in the $_FILES array. Lately I’ve been working with REST APIs and I’ve ..

Read more