What is the type of your variable in your database?

|
oxbir 2020-01-13 10:42:13
public function up()
{
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();
});
}
skys215 2020-01-13 10:43:30
oxbir 2020-01-13 10:42:13
public function up()
{
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

Fatima 2020-01-13 11:56:07
laravel_discuss-23929.jpg

Fatima 2020-01-13 11:56:07
laravel_discuss-23928.jpg

Fatima 2020-01-13 11:56:44
Does any body know why my cart cant increment
Fatima 2020-01-13 11:57:09
I mean it just have the last product that I add
Begroups 2020-01-13 12:08:38
Helo thwre
Begroups 2020-01-13 12:08:40
There*
Fatima 2020-01-13 12:17:25
Fatima 2020-01-13 11:57:09
I mean it just have the last product that I add

No oneπŸ˜•???

Mk_123656 2020-01-13 12:19:08
Fatima 2020-01-13 11:57:09
I mean it just have the last product that I add

Send video

Mk_123656 2020-01-13 12:19:17
I can try to understand
Fatima 2020-01-13 12:19:43
The picture is not clear you mean.??
Mk_123656 2020-01-13 12:20:07
I see
Mk_123656 2020-01-13 12:20:23
But your coding structure i can’t understand
Mk_123656 2020-01-13 12:20:39
Which cart package use?
2020-01-13 12:35:35
Fatima 2020-01-13 11:56:07

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.

2020-01-13 12:36:30
fatima, you from indonesia?
Fatima 2020-01-13 12:36:31
2020-01-13 12:35:35
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.

A new object from my cart class

Fatima 2020-01-13 12:36:38
2020-01-13 12:36:30
fatima, you from indonesia?

No

2020-01-13 12:50:40
Does anyone know how does laravel’s email blade work? I pushed it using php artisan push, but it’s too messy, I wanted to remove “Hello” header from my email I even couldn’t find it!
. 2020-01-13 12:58:10
palebeatzmlg 2020-01-13 01:05:58
Anu tutorial how to instal theme LTE

Yes, find laravel infyom generator tutorial

2020-01-13 12:58:15
Yes?
2020-01-13 12:58:36
. 2020-01-13 12:58:10
Yes, find laravel infyom generator tutorial

Hmmm

2020-01-13 12:59:45
. 2020-01-13 12:58:10
Yes, find laravel infyom generator tutorial

I’m not good at googling that much, can you give me a link?

2020-01-13 13:00:11
. 2020-01-13 12:58:10
Yes, find laravel infyom generator tutorial

You mean this?
https://labs.infyom.com/laravelgenerator/docs/master/getting-started

InfyOm Laravel Generator Getting StartedInfyom
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.
. 2020-01-13 13:00:15
2020-01-13 12:58:36
Hmmm

Yes, they will guide you on installing adminLTE theme and others too many to specify

2020-01-13 13:03:35
. 2020-01-13 13:00:15
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.

. 2020-01-13 13:08:00
2020-01-13 13:03:35
Thanks, but I would prefer not to use any external package.

Good.

2020-01-13 13:13:56
oxbir 2020-01-13 10:41:48
IlluminateDatabaseQueryException : SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that cor
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); }

2020-01-13 13:16:08
I hope it has helped
Fatima 2020-01-13 13:27:38
laravel_discuss-23961.jpg

dennis 2020-01-13 13:37:38
Which tool is used to make documentations like laravel documentation
2020-01-13 13:47:11
Fatima 2020-01-13 13:27:38

Is it an answer? or a question

2020-01-13 13:49:36
dennis 2020-01-13 13:37:38
Which tool is used to make documentations like laravel documentation

https://github.com/mpociot/laravel-apidoc-generator/blob/master/README.md

mpociot/laravel-apidoc-generatorGitHub
Laravel API Documentation Generator. Contribute to mpociot/laravel-apidoc-generator development by creating an account on GitHub.
oxbir 2020-01-13 13:57:31
how to sort this code?
oxbir 2020-01-13 13:58:15
public function register(Request $request)
{
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’);
}
skys215 2020-01-13 14:19:35
Sort?
prabhjd 2020-01-13 14:26:48
Anyone online? Need some quick help
prabhjd 2020-01-13 14:27:06
laravel_discuss-23969.jpg

prabhjd 2020-01-13 14:27:54
I’m using compact for passing data to view but Dd returning false
Fatima 2020-01-13 14:35:13
2020-01-13 13:47:11
Is it an answer? or a question

Question

dennis 2020-01-13 14:46:23
dennis 2020-01-13 13:37:38
Which tool is used to make documentations like laravel documentation

Any ideas please

2020-01-13 14:53:12
prabhjd 2020-01-13 14:27:54
I’m using compact for passing data to view but Dd returning false

what is the type of your variable in your database?

2020-01-13 14:53:34
dennis 2020-01-13 13:37:38
Which tool is used to make documentations like laravel documentation

what??

2020-01-13 14:54:20
oxbir 2020-01-13 13:58:15
public function register(Request $request)
{
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?

2020-01-13 14:55:52
folks i am trying to add a Posting cost in my Shopping cart that is updated and automaticlly adds the cost to cart::total() any clues?
rrajesh011 2020-01-13 16:10:04
laravel_discuss-23978.jpg
Anyone knows the solution
rrajesh011 2020-01-13 16:10:33
I have tried bunch of solution like adding header in index.php, creating middle for cors policy
rrajesh011 2020-01-13 16:10:38
None of them are working
2020-01-13 16:10:44
rrajesh011 2020-01-13 16:10:04
Anyone knows the solution

Access-Control-Allow-Origin *;
Access-Control-Expose-Headers true;

|