How to send uploade file from frontend to api in laravel?

|
suhailpallimalil 2020-06-21 10:29:59
Any idea?
hamidshariati_ir 2020-06-21 10:32:15
why laravel is so slow?
suhailpallimalil 2020-06-21 10:46:44
laravel_discuss-42380.jpg

suhailpallimalil 2020-06-21 10:46:55
Got the answer
suhailpallimalil 2020-06-21 10:47:05
New vagrant box released
Abhinav Trivedi 2020-06-21 10:54:13
hamidshariati_ir 2020-06-21 10:32:15
why laravel is so slow?

You should try java👍

hamidshariati_ir 2020-06-21 10:55:01
Abhinav Trivedi 2020-06-21 10:54:13
You should try java👍

no time

oxbir 2020-06-21 11:03:12
trying to get property ‘id’ of non-object
oxbir 2020-06-21 11:03:28
what is this error?
suhailpallimalil 2020-06-21 11:35:33
Help
How can i use specific version laravel/homestead?
6 days ago new beta version released. Automatically picking up that. But project version 5.4 and using mysql 5.7 . But this new beta version coming along with mysql 8. This running me crazy
suhailpallimalil 2020-06-21 11:35:54
Please help
suhailpallimalil 2020-06-21 11:38:04
Not the laravel specific version . Specific version of homestead.
suhailpallimalil 2020-06-21 11:39:11
6 days homestead new version released . But as of now my project is 5.4 i need the old version of homestead
Shijinsubramanniam 2020-06-21 13:24:02
laravel_discuss-42402.jpg
Showing create and save doesn’t exist….Any body plz help because iam stuck for 2 days in these issue
Shijinsubramanniam 2020-06-21 13:24:13
Anybody explain y
Dipak_Giri 2020-06-21 13:38:23
Siberfx 2020-06-20 20:08:21
composer require laravel/ui && php artisan ui:auth —bootstrap

Got it buddy… Thanks

imkb 2020-06-21 13:38:26
Expected response code 250 but got code “530”, with message “530 5.7.1 Authentication required
imkb 2020-06-21 13:38:40
How to solve this error??
imkb 2020-06-21 13:39:06
laravel_discuss-42407.jpg

Shijinsubramanniam 2020-06-21 13:54:53
Shijinsubramanniam 2020-06-21 13:24:02
Showing create and save doesn’t exist….Any body plz help because iam stuck for 2 days in these issue

Plz

uKUTUK 2020-06-21 14:09:58
Show me you create method in UserController
Shijinsubramanniam 2020-06-21 14:22:21
uKUTUK 2020-06-21 14:09:58
Show me you create method in UserController

laravel_discuss-42411.jpg

uKUTUK 2020-06-21 14:24:06
try User::create($data)
Shijinsubramanniam 2020-06-21 14:26:26
Then it will show user not found
uKUTUK 2020-06-21 14:26:46
Do you have a User model
uKUTUK 2020-06-21 14:26:56
please check it
Shijinsubramanniam 2020-06-21 14:27:44
laravel_discuss-42416.jpg
User model
uKUTUK 2020-06-21 14:29:33
https://laravel.com/docs/7.x/eloquent

use AppUser.php

User::create($data)

imkb 2020-06-21 14:40:59
imkb 2020-06-21 13:39:06

Anybody know this…?

devink0430 2020-06-21 14:47:06
imkb 2020-06-21 14:40:59
Anybody know this…?

https://stackoverflow.com/questions/57760144/laravel-cant-send-mail-expected-response-code-250-but-got-code-530-with-mes

https://stackoverflow.com/questions/48341078/expected-response-code-250-but-got-code-530-with-message-530-5-7-1-authentic

Laravel cant send mail: “Expected response code 250 but got code “530”, with message “530 5.7.1 Authentication required ↵””Stack Overflow
I am trying to send automatic email after registration using Gmail , Angular-7 frontend and backend. I got this error:

exception: “Swift_TransportException”
file:
“C:xampphtdocscustomer_…

imkb 2020-06-21 15:09:01
devink0430 2020-06-21 14:47:06
https://stackoverflow.com/questions/57760144/laravel-cant-send-mail-expected-response-code-250-but-got-code-530-with-mes

https://stackoverflow.com/questions/48341078/expected-response-code-250-but-got-code-530-with-message-530-5-7-1-authentic

I dnt get solution. Using this

2020-06-21 15:12:39
My Gig on fiverr
https://www.fiverr.com/s2/3ef98a09b9?utm_source=mail_Mobile?utm_source=org.telegram.messenger_Mobile

ashadulmridha : I will build a professional and responsive wordpress website design for $5 on fiverr.comFiverr.com
For only $5, ashadulmridha will build a professional and responsive wordpress website design. | Hello! Everyone. Welcome To My Gig Page.If you are looking to create a WordPress Website or Blog for your business then look no further, you’re | On Fiverr
Mohammad_Agbareya 2020-06-21 15:20:02
laravel_discuss-42424.jpg
hi👋
what is the best way to write this query in laravel
Kriti Agarwal 2020-06-21 16:19:42
How to send uploade file from frontend to api in laravel?
cayetanohosma 2020-06-21 16:25:14
Kriti Agarwal 2020-06-21 16:19:42
How to send uploade file from frontend to api in laravel?

https://laracasts.com/discuss/channels/laravel/file-upload-rest-api-for-laravel

File Upload REST API for Laravel?Laracasts
Good day, Do you have any resources or tutorial on making a file upload REST API in laravel? Thanks and Godbless.
cayetanohosma 2020-06-21 16:26:11
Mohammad_Agbareya 2020-06-21 15:20:02
hi👋
what is the best way to write this query in laravel

Do it as normal query getting the clients and comments relationship and count the collection items (result)

Mohammad_Agbareya 2020-06-21 16:28:24
I need to know for each user how many clients the user has commented for
Kriti Agarwal 2020-06-21 16:28:46
cayetanohosma 2020-06-21 16:25:14
https://laracasts.com/discuss/channels/laravel/file-upload-rest-api-for-laravel

I did the same. It is working fine with postman but not with form.

cayetanohosma 2020-06-21 16:29:17
Kriti Agarwal 2020-06-21 16:28:46
I did the same. It is working fine with postman but not with form.

How did you pass the file in postman?

Kriti Agarwal 2020-06-21 16:29:42
cayetanohosma 2020-06-21 16:29:17
How did you pass the file in postman?

Through form-data and selecting file as type

cayetanohosma 2020-06-21 16:30:11
Mohammad_Agbareya 2020-06-21 16:28:24
I need to know for each user how many clients the user has commented for

Check out this:

Eloquent withCount(): Get Related Records Amount

Eloquent withCount(): Get Related Records Amount – Laravel DailyLaravel Daily
Eloquent has one less-known function called withCount(): it helps to get the amount of related records inside of the main object. It also works with two layers deep, inside of hasManyThrough relations. Let’s take a look.
Jihat_developer 2020-06-21 16:30:48
laravel_discuss-42435.jpg
any try false password this error show , what’s problem ?
Jihat_developer 2020-06-21 16:31:00
public function __construct()
{
$this->middleware([‘guest’,’throttle: 60 ,2′])->except(‘logout’);
}
Mohammad_Agbareya 2020-06-21 16:31:22
cayetanohosma 2020-06-21 16:30:11
Check out this:
https://laraveldaily.com/eloquent-withcount-get-related-records-amount/

withCount doesn’t work well with groupBy

cayetanohosma 2020-06-21 16:33:44
Mohammad_Agbareya 2020-06-21 16:31:22
withCount doesn’t work well with groupBy

https://stackoverflow.com/questions/41269493/groupby-within-withcount-closure-laravel-5-3-26

groupBy within withCount closure (Laravel 5.3.26)Stack Overflow
Within Laravel 5.3.26, is it possible to group the result of withCount based on a column of that relationship? Something as follows, for example:

$brands = AppModelsBrand::withCount([ ‘products…

amir881231 2020-06-21 16:34:11
Shijinsubramanniam 2020-06-21 14:22:21

Pubkic function create() {

}

amir881231 2020-06-21 16:34:30
Try this kind of method
Mohammad_Agbareya 2020-06-21 16:37:52
thank you @cayetanohosma
cayetanohosma 2020-06-21 16:43:11
You’re welcom @Mohammad_Agbareya
Roham0010 2020-06-21 17:00:53
Yes?
|