Did you watch a tutorial of someone using php storm or something?

|
Matthew94R 2020-05-11 21:05:57
Siberfx 2020-05-11 20:00:48
please check this tutorial how to do it with Laravel, even with a verification if you need.
https://hdtuto.com/article/laravel-57-image-upload-with-validation-example

Thank you very much it works 👍

Siberfx 2020-05-11 21:09:10
np 🙂 cheers
Patricklab 2020-05-11 21:09:15
have a doubt
Gabby_Json 2020-05-12 01:01:39
laravel_discuss-36924.jpg

Gabby_Json 2020-05-12 01:03:20
laravel_discuss-36925.jpg
why this error. my code looks clean
DesolatorMagno 2020-05-12 01:22:30
did you watch a tutorial of someone using php storm or something?
Gabby_Json 2020-05-12 01:22:46
yeah
DesolatorMagno 2020-05-12 01:22:52
that’s the problem.
DesolatorMagno 2020-05-12 01:23:45
You have still the ExampleTest?
DesolatorMagno 2020-05-12 01:24:18
laravel_discuss-36930.jpg

Gabby_Json 2020-05-12 01:25:10
no i remove it
Asish K Antony 2020-05-12 01:28:58
Hi I have done a two guard authentication and I formed Middle ware groups in routes with each guard(pic1)

now when i acces the route in middleware with guard admin i need to redirected to login/admin
and when i access the route in middleware with guard patient i need to redirected to login/patient

how can i do that

Asish K Antony 2020-05-12 01:29:37
laravel_discuss-36933.jpg
Pic1 -> Route file
DesolatorMagno 2020-05-12 01:31:43
Modify the middleware so it redirect where you wish?
Gabby_Json 2020-05-12 01:32:40
DesolatorMagno 2020-05-12 01:24:18

thanks man

DesolatorMagno 2020-05-12 01:34:28
Gabby_Json 2020-05-12 01:32:40
thanks man

Fixing a error is cool, but knowing what you did wrong, is much better, that code right there was something i would do a friday at 3am after a good amount of vodka 😂

Gabby_Json 2020-05-12 01:39:53
DesolatorMagno 2020-05-12 01:34:28
Fixing a error is cool, but knowing what you did wrong, is much better, that code right there was something i would do a friday at 3am after a good amount of vodka 😂

hey man you got any good tutorial for api

Gabby_Json 2020-05-12 01:39:53
Asish K Antony 2020-05-12 01:29:37
Pic1 -> Route file

Route::group([‘middle’=>[‘auth’,’admin’]], function() {}

DesolatorMagno 2020-05-12 01:40:55
Not really, but for api i would try searching for lumen tutorials.
Gabby_Json 2020-05-12 01:41:48
alright. on it
Asish K Antony 2020-05-12 01:45:06
Gabby_Json 2020-05-12 01:39:53
Route::group([‘middle’=>[‘auth’,’admin’]], function() {}

it is not working it just serve the route without checking auth

Gabby_Json 2020-05-12 01:45:47
check your middleware
Gabby_Json 2020-05-12 01:46:47
have you include it in kernel.php
Asish K Antony 2020-05-12 01:47:45
I am using the auth middleware already present and was working fine
now i added two guards for multiple authentication
Asish K Antony 2020-05-12 01:47:53
and it works fine too
Asish K Antony 2020-05-12 01:49:55
the problem arises when i try to serve a route which is in a middleware group with a specific guard it should redirect to the login page according to the specific guard
DesolatorMagno 2020-05-12 01:50:16
them why don’t you extend or modify the auth?
Gabby_Json 2020-05-12 01:50:55
Asish K Antony 2020-05-12 01:47:45
I am using the auth middleware already present and was working fine
now i added two guards for multiple authentication

if i were you i will make an admin middleware

DesolatorMagno 2020-05-12 01:51:02
I really really, don’t see the problem.
Asish K Antony 2020-05-12 11:32:59
DesolatorMagno 2020-05-12 01:51:02
I really really, don’t see the problem.

it’s working
My bad
Now I used Authentication Exception to route to the specified login route

2020-05-12 12:11:18
I want to allow the manager to upload a csv file to a database that will have users with an email name and ID (which is their password), anyone know a good way to do that? Or a guide that explains
2020-05-12 12:21:05
https://www.youtube.com/playlist?list=PLOUzq57Zl8emGZtauQ_WPCT_rZ9C-CfE2

MYSQL Tutorials – YouTubeYouTube
2020-05-12 12:22:50
Please subscribe my channel
2020-05-12 12:23:00
And support
2020-05-12 12:23:11
Thanks in advance
Relaxed Guy 2020-05-12 13:21:15
Best laravel package for …data visualization
Relaxed Guy 2020-05-12 13:21:21
Please drop your best here
….Rr 2020-05-12 13:33:21
laravel_discuss-36968.jpg
I am using mailtrap,anyone know the solution
Siberfx 2020-05-12 13:34:39
share your code
Siberfx 2020-05-12 13:34:44
not only the error
….Rr 2020-05-12 13:36:10
laravel_discuss-36971.jpg
ContactFormController
….Rr 2020-05-12 13:36:32
laravel_discuss-36972.jpg
.env
2020-05-12 13:41:38
ContactForMail ?
….Rr 2020-05-12 13:44:16
laravel_discuss-36974.jpg
ContactFormMail
….Rr 2020-05-12 13:45:38
laravel_discuss-36975.jpg

Siberfx 2020-05-12 13:52:59
….Rr 2020-05-12 13:36:10
ContactFormController

why dont you partse $data into new contactformmail

Siberfx 2020-05-12 13:53:22
and mail encyrption tls in .env file
Siberfx 2020-05-12 13:55:52
also you have missing fields
Siberfx 2020-05-12 13:56:36
add these 2 lines in your .env

MAIL_FROM_ADDRESS=from@mail.com
MAIL_FROM_NAME=”mail subject”

Siberfx 2020-05-12 13:57:02
by the way what is the version of your application?
|