Did this error occur during migration?

|
Mr. N♡ ♡N€🇮🇳 2022-03-16 18:13:36
Nd may be you are not passing proper data during insert 🧐
web design 2022-03-16 18:18:21
Mr. N♡ ♡N€🇮🇳 2022-03-16 18:12:43
seems like Something wrong in your attributes table structure ….

laravel_discuss-111873.jpg
Where is wrong?

web design 2022-03-16 18:18:48
Or this?
web design 2022-03-16 18:19:16
laravel_discuss-111875.jpg

Karube0910 2022-03-16 18:21:26
Hello! I’m Geetanshu, an SME Recruitment Executive at TechCurators (https://www.techcurators.in). We are an assessment-based company. We are looking for Subject Matter Experts in Survey. If you are interested, kindly revert with your contact details. It will be a paid freelance project.
Thanks

Home – TechCuratorsTechCurators
TechCurators provide tailor-made assessment s and solutions, customized to your requirements ensuring to find the best fit candidates for your company.
Venusky 2022-03-16 18:41:36
inside_rt 2022-03-16 16:17:59
Either you gave the path incorrect or or the file is missing in the mentioned path

but it is a cdn link

Saddam Hussain 2022-03-16 18:54:21
laravel_discuss-111878.jpg

Saddam Hussain 2022-03-16 18:57:43
Saddam Hussain 2022-03-16 18:54:21

Hello I am new to laravel.. When I am creating project it gives me this error . I don’t know what changes should be done to overcome this error.. Please Help

Siberfx 2022-03-16 18:58:59
install composer latest.
inside_rt 2022-03-16 19:07:14
Venusky 2022-03-16 18:41:36
but it is a cdn link

Use file get contents function. https://www.php.net/manual/en/function.file-get-contents.php

Jadidi_82 2022-03-16 19:43:17
Hi guys how can I insert multiple data into the database at one moment?
bsamaasi 2022-03-16 19:46:00
web design 2022-03-16 18:18:21
Where is wrong?

Did this error occur during migration??

bsamaasi 2022-03-16 19:52:46
Jadidi_82 2022-03-16 19:43:17
Hi guys how can I insert multiple data into the database at one moment?

What method do you intend to use: eloquent or Db facade… well both accepts an array or a collection

Jadidi_82 2022-03-16 19:53:07
bsamaasi 2022-03-16 19:52:46
What method do you intend to use: eloquent or Db facade… well both accepts an array or a collection

eloquent

bsamaasi 2022-03-16 19:53:57
The create method accept array or collection
Jadidi_82 2022-03-16 19:54:43
for example I have two movie data. can I do that?
bsamaasi 2022-03-16 19:56:30
Jadidi_82 2022-03-16 19:54:43
for example I have two movie data. can I do that?

Give example data

Jadidi_82 2022-03-16 19:57:38
for example my movie table has a title and videoUrl.
Jadidi_82 2022-03-16 19:59:20
the first movie:
title:exampleTitle
videoUrl:exmapleVideo
Jadidi_82 2022-03-16 19:59:36
the second movie:
title:exampleTitle2
videoUrl:exmapleVideo2
bsamaasi 2022-03-16 20:01:01
Convert it into an array and use it
vishalsharma19 2022-03-16 20:03:29
I have a website on WordPress on my domain

I want to use a directory for ex (domain,com/dashboard ) for Laravel script

How I can exclude it from wordpress ?

bsamaasi 2022-03-16 20:05:44
Jadidi_82 2022-03-16 19:59:36
the second movie:
title:exampleTitle2
videoUrl:exmapleVideo2

$movieData = [
[ ‘title’ => ‘exampleTitle’, ‘videoUrl’ => ‘exampleVideo’],
[ ‘title’ => ‘exampleTitle2’, ‘videoUrl’ => ‘exampleVideo2’],
];

->create($movieData);

You can more understanding if you read the documentation.

eipekco 2022-03-16 20:08:37
vishalsharma19 2022-03-16 20:03:29
I have a website on WordPress on my domain

I want to use a directory for ex (domain,com/dashboard ) for Laravel script

How I can exclude it from wordpress ?

first you should upload the wordpress site in seprate folder and upload laravel in home directory then in web.php in laravel define a route with “yourdomain/dashboard”

2022-03-16 20:13:50
The worst ever idea.
2022-03-16 20:14:24
2022-03-16 20:13:50
The worst ever idea.

Where are you from?

bsamaasi 2022-03-16 20:15:29
bsamaasi 2022-03-16 20:05:44
$movieData = [
[ ‘title’ => ‘exampleTitle’, ‘videoUrl’ => ‘exampleVideo’],
[ ‘title’ => ‘exampleTitle2’, ‘videoUrl’ => ‘exampleVideo2’],
];

->create($movieData);

You can more understanding if you read the documentation.

You could also use:

collect($movieData)->each(function($item){
Movie::create($item);
});

Jadidi_82 2022-03-16 20:18:57
bsamaasi 2022-03-16 20:15:29
You could also use:

collect($movieData)->each(function($item){
Movie::create($item);
});

this one worked. thanks

bsamaasi 2022-03-16 20:20:27
Jadidi_82 2022-03-16 20:18:57
this one worked. thanks

Cool

web design 2022-03-16 21:10:40
bsamaasi 2022-03-16 19:46:00
Did this error occur during migration??

Yes

bsamaasi 2022-03-16 21:12:04
web design 2022-03-16 21:10:40
Yes

Then verify if the table you are referencing is before the attributes migration file, if not make it so.

web design 2022-03-16 21:13:26
bsamaasi 2022-03-16 21:12:04
Then verify if the table you are referencing is before the attributes migration file, if not make it so.

Yes

bsamaasi 2022-03-16 21:13:49
web design 2022-03-16 21:13:26
Yes

Yes on???

web design 2022-03-16 21:14:13
bsamaasi 2022-03-16 21:13:49
Yes on???

laravel_discuss-111908.jpg

bsamaasi 2022-03-16 21:14:42
web design 2022-03-16 21:14:13

I mean you migration file

|