Which cart package use?
Does it accept an integer or something?
fatima, you from indonesia?
Is it an answer?
how to sort this code?
what is the type of your variable in your database?
{
Schema::create(‘users’, function (Blueprint $table) {
$table->bigIncrements(‘id’);
$table->string(‘first_name’);
$table->string(‘last_name’);
$table->string(‘mobile’)->unsigned();
$table->string(‘telephone’);
$table->string(’email’)->unique();
$table->timestamp(’email_verified_at’)->nullable();
$table->string(‘password’);
$table->string(‘image’)->nullable();
$table->rememberToken();
$table->timestamps();
});
}
{
Schema::create(‘users’, function (Blueprint $table) {
$table->bigIncrements(‘id’);
$table->string(‘first_name’);
$table->string(‘last_name’);
$table->string(‘mobile’)->unsigned();
$table->string(‘telephone’);
$table->string(’email’)->unique();
$table->timestamp(’email_verified_at’)->nullable();
$table->string(‘password’);
$table->string(‘image’)->nullable();
$table->rememberToken();
$table->timestamps();
});
}
mobile is a string, cannot be unsigned


No oneπ???
Send video
What does new Cart($oldcart); mean?
I haven’t seen such a thing. Does it accept an integer or something?
* Sry, I didn’t see the second image! I thought it’s a model.
I haven’t seen such a thing. Does it accept an integer or something?
* Sry, I didn’t see the second image! I thought it’s a model.
A new object from my cart class
No
Yes, find laravel infyom generator tutorial
Hmmm
I’m not good at googling that much, can you give me a link?
You mean this?
https://labs.infyom.com/laravelgenerator/docs/master/getting-started
A check of InfyOm Laravel Generator commands guide. This page provides Laravel Generator command, API generator command and Scaffold generator command for ease of developers.
Yes, they will guide you on installing adminLTE theme and others too many to specify
Thanks, but I would prefer not to use any external package.
Good.
responds to your MariaDB server version for the right syntax to use near ‘unsigned not null, telephone varchar(191) not null, email varchar(191) not n’ at l
ine 1 (SQL: create table users (`id` bigint unsigned not null auto_increment primary key, first_name varchar(191) not null, last_name varchar(191) not nul
l, mobile varchar(191) unsigned not null, telephone varchar(191) not null, email varchar(191) not null, email_verified_at timestamp null, password var
char(191) not null, image varchar(191) null, remember_token varchar(100) null, created_at timestamp null, updated_at timestamp null) default character s
et utf8mb4 collate ‘utf8mb4_unicode_ci’)
As outlined in the Migrations guide to fix this all you have to do is edit your AppServiceProvider.php file and inside the boot method set a default string length:
use IlluminateDatabaseSchemaBuilder; public function boot() { Builder::defaultStringLength(191); }

Is it an answer? or a question
https://github.com/mpociot/laravel-apidoc-generator/blob/master/README.md
Laravel API Documentation Generator. Contribute to mpociot/laravel-apidoc-generator development by creating an account on GitHub.
{
if($request->has(‘image’)) {
$image = $request->file(‘image’);
$filename = $image->getClientOriginalName();
$image->move(public_path(‘public/images/users’), $filename);
$user->image = $request->file(‘image’)->getClientOriginalName();
}
User::create([
‘first_name’ => $request->first_name,
‘last_name’ => $request->last_name,
‘mobile’ => $request->mobile,
‘telephone’ => $request->telephone,
’email’ => $request->email,
‘password’ => Hash::make($request->password),
]);
return redirect()->route(‘index’);
}

Question
Any ideas please
what is the type of your variable in your database?
what??
{
if($request->has(‘image’)) {
$image = $request->file(‘image’);
$filename = $image->getClientOriginalName();
$image->move(public_path(‘public/images/users’), $filename);
$user->image = $request->file(‘image’)->getClientOriginalName();
}
User::create([
‘first_name’ => $request->first_name,
‘last_name’ => $request->last_name,
‘mobile’ => $request->mobile,
‘telephone’ => $request->telephone,
’email’ => $request->email,
‘password’ => Hash::make($request->password),
]);
return redirect()->route(‘index’);
}
sort?

Anyone knows the solution
Access-Control-Allow-Origin *;
Access-Control-Expose-Headers true;