Can anybody explain the concepts of Unit Testing in Laravel?

|
rsabhar 2022-05-26 10:20:39
Laravel angular developer requires for immediate joining at bangalore location
rsabhar 2022-05-26 10:20:51
Dm me please
seniormonsieur 2022-05-26 10:23:52
rsabhar 2022-05-26 10:20:39
Laravel angular developer requires for immediate joining at bangalore location

Nice to meet you too

anujrock1 2022-05-26 10:54:53
N_Ibrokhim 2022-05-26 08:36:44
Hi guys! I had a multi-step form and in the final step I had to submit a file. But I get this error. However, when I check public/folder, the files get there

laravel_discuss-122646.jpg
Due to this l, file are getting uploaded in public/folder

anujrock1 2022-05-26 10:56:53
N_Ibrokhim 2022-05-26 08:37:40
blade

Are you uploading multiple images?

anujrock1 2022-05-26 10:58:51
N_Ibrokhim 2022-05-26 08:37:25
controller

Can you show this full code?

I want to see what you are returning from this function

N_Ibrokhim 2022-05-26 10:59:12
anujrock1 2022-05-26 10:56:53
Are you uploading multiple images?

No

N_Ibrokhim 2022-05-26 10:59:36
anujrock1 2022-05-26 10:54:53
Due to this l, file are getting uploaded in public/folder

I read on the Google that you can’t send the file itself, you need to send the path to the file, but I tried both return $path and save->$path , nothing happens

N_Ibrokhim 2022-05-26 11:06:39
laravel_discuss-122653.jpg

N_Ibrokhim 2022-05-26 11:06:52
laravel_discuss-122654.jpg

Bright 2022-05-26 11:07:39
N_Ibrokhim 2022-05-26 10:59:36
I read on the Google that you can’t send the file itself, you need to send the path to the file, but I tried both return $path and save->$path , nothing happens

I used to do this before but when hosting it on a shared hosting, I run into an issue, I was unable to get my images, so I changed,now I always get my images without any storage link

N_Ibrokhim 2022-05-26 11:08:47
Bright 2022-05-26 11:07:39
I used to do this before but when hosting it on a shared hosting, I run into an issue, I was unable to get my images, so I changed,now I always get my images without any storage link

How is that?

Bright 2022-05-26 11:09:10
N_Ibrokhim 2022-05-26 11:08:47
How is that?

Is so easy

Bright 2022-05-26 11:10:26
I’m in a vehicle, when I alight I will get back to you on this
N_Ibrokhim 2022-05-26 11:12:47
Bright 2022-05-26 11:10:26
I’m in a vehicle, when I alight I will get back to you on this

Ok, thanks

Bright 2022-05-26 11:13:56
If you do this, you only need to use {asset(imgaefolder)} something like this
anujrock1 2022-05-26 11:16:01
N_Ibrokhim 2022-05-26 11:06:39

I think error due to code at line no 238

What is $path?

anujrock1 2022-05-26 11:18:18
N_Ibrokhim 2022-05-26 11:06:52

Why you are returning $path at 238

Your are redirecting at line no. 242

Try once after commenting line no. 242

Bright 2022-05-26 11:18:19
N_Ibrokhim 2022-05-26 11:12:47
Ok, thanks

With this, you don’t need any storage link and everything will work perfectly, storage link sometimes gives issues when using shared hosting

anujrock1 2022-05-26 11:18:37
Bright 2022-05-26 11:13:56
If you do this, you only need to use {asset(imgaefolder)} something like this

Yes as usual we do

anujrock1 2022-05-26 11:19:43
Bright 2022-05-26 11:18:19
With this, you don’t need any storage link and everything will work perfectly, storage link sometimes gives issues when using shared hosting

I haven’t face any issue like this because I always use digital ocen but, will remember this

N_Ibrokhim 2022-05-26 11:37:39
anujrock1 2022-05-26 11:18:18
Why you are returning $path at 238

Your are redirecting at line no. 242

Try once after commenting line no. 242

I thought that if you return path, then the path to the file will be saved in the store function(

N_Ibrokhim 2022-05-26 11:38:34
anujrock1 2022-05-26 11:18:18
Why you are returning $path at 238

Your are redirecting at line no. 242

Try once after commenting line no. 242

try now

GeeVone 2022-05-26 11:43:17
HI All,

can anybody explain the concepts of Unit Testing in Laravel ?
When and why and how we need to test our app ( example a simple blog app )

is the test applicable to all the CRUD method only ? or should we test the links also ?

anujrock1 2022-05-26 11:54:49
N_Ibrokhim 2022-05-26 11:37:39
I thought that if you return path, then the path to the file will be saved in the store function(

No you are wrong

anujrock1 2022-05-26 11:55:19
N_Ibrokhim 2022-05-26 11:38:34
try now

Have you tried after removing that, return $path ???

anujrock1 2022-05-26 11:57:01
GeeVone 2022-05-26 11:43:17
HI All,

can anybody explain the concepts of Unit Testing in Laravel ?
When and why and how we need to test our app ( example a simple blog app )

is the test applicable to all the CRUD method only ? or should we test the links also ?

You can test your CRUD and links also

N_Ibrokhim 2022-05-26 12:04:08
anujrock1 2022-05-26 11:55:19
Have you tried after removing that, return $path ???

yes ,it didn’t work

anujrock1 2022-05-26 12:06:03
N_Ibrokhim 2022-05-26 12:04:08
yes ,it didn’t work

When you are getting this error?

anujrock1 2022-05-26 12:07:03
anujrock1 2022-05-26 12:06:03
When you are getting this error?

From postcreateatep8 function?

N_Ibrokhim 2022-05-26 12:07:18
its all code
N_Ibrokhim 2022-05-26 12:08:23
anujrock1 2022-05-26 12:07:03
From postcreateatep8 function?

after all steps in function store

N_Ibrokhim 2022-05-26 12:09:52
the file is sent in the eighth step
Anujkesari123 2022-05-26 12:11:39
I have one queery
Anujkesari123 2022-05-26 12:11:50
Anyone help me
|