When trying to send email using laravel, it displays error as screenshot?

|
arierwan 2021-02-09 10:30:27
Jomitz 2021-02-09 10:29:31
Sorry bro thats all ive got

thank you very much for your response

krishu_7 2021-02-09 10:37:27
Hey guys
Is there any way to create enum in config file in Laravel ??
krishu_7 2021-02-09 10:40:31
For using in switch cases
Sundram Gupta 2021-02-09 10:43:06
laravel_discuss-69647.jpg

Sundram Gupta 2021-02-09 10:43:19
Ple help to resolve
Jomitz 2021-02-09 11:14:13
Sundram Gupta 2021-02-09 10:43:06

have you closed the link tag

iampranjalgoel 2021-02-09 11:26:53
What is the best way to store credentials to connect with DB or SMTP & Others In Secure Form i.e. Currently I M Storing It In .env File But It Seems Not Fully Secured or Can Be Hacked. Any Suggestions ???
Sysome 2021-02-09 11:34:23
laravel_discuss-69652.jpg
Hi brothers. when trying to send email using laravel, it displays error as screenshot? Any wrong with my code?
Sysome 2021-02-09 11:34:24
laravel_discuss-69653.jpg

vek866q 2021-02-09 12:45:49
Sysome 2021-02-09 11:34:23
Hi brothers. when trying to send email using laravel, it displays error as screenshot? Any wrong with my code?

Your should generate your mail list as an array and not as a string. e.g [’emailone’, [’emial2′]]

vek866q 2021-02-09 12:46:10
[’email1′, ’email2′]
Joice 2021-02-09 13:57:58
laravel_discuss-69658.jpg

Joice 2021-02-09 13:58:11
What is the issue ..anybody who knows please help
nazmulpcc 2021-02-09 14:01:15
Joice 2021-02-09 13:57:58

Somewhere in incoming-v2.blade.php file, you are trying to access property of an object, but somehow that object is actually null

nazmulpcc 2021-02-09 14:02:25
For example, if you are trying to access, “Auth::user()->name” and Auth::user() is null(no logged in user) then this error will happen
Yan Ever 2021-02-09 14:02:50
Sysome 2021-02-09 11:34:24

make $row[’email’]

Yan Ever 2021-02-09 14:03:14
is not and objet for do $row->email
Yan Ever 2021-02-09 14:04:51
show you obtains $email_list in y’re code for see the collection type
DukeKwaku 2021-02-09 14:05:09
laravel_discuss-69665.jpg
Am I doing something wrong here…. Am using spatie.be activity log package but the causer details are not being logged, when I checked the table fields in DB, causer_type and causer_id are null
Joice 2021-02-09 14:07:33
nazmulpcc 2021-02-09 14:01:15
Somewhere in incoming-v2.blade.php file, you are trying to access property of an object, but somehow that object is actually null

Nazmul do we know on which ine it is

vek866q 2021-02-09 14:35:58
DukeKwaku 2021-02-09 14:05:09
Am I doing something wrong here…. Am using spatie.be activity log package but the causer details are not being logged, when I checked the table fields in DB, causer_type and causer_id are null

Do you have admin guard defined? if not use the default guard ‘web’

imhajiiii 2021-02-09 14:36:01
hey frinds can you help me in write ajax for live search to laravel
DukeKwaku 2021-02-09 14:38:21
vek866q 2021-02-09 14:35:58
Do you have admin guard defined? if not use the default guard ‘web’

Yes. It’s defined.

vek866q 2021-02-09 15:00:44
confirm from db if that user role is saved with the admin guard name. roles table
krishu_7 2021-02-09 15:04:52
laravel_discuss-69672.jpg
Please help me with this
How can I give enumeration for switch cases. There are 3 cases for recharge type’s.

Prepaid
Voucher
Prepaid with attributes
How can I give prepaid instead of case 1 and voucher for case 2 and so on.
Please help me with this

krishu_7 2021-02-09 15:06:03
laravel_discuss-69673.jpg
Enum.PHP created inside the config folder
w3lifer 2021-02-09 15:10:26
Why are you taking photos instead screenshots?
DukeKwaku 2021-02-09 15:17:39
DukeKwaku 2021-02-09 14:05:09
Am I doing something wrong here…. Am using spatie.be activity log package but the causer details are not being logged, when I checked the table fields in DB, causer_type and causer_id are null

Fixed

DukeKwaku 2021-02-09 15:17:53
I brought the causedBy() before the log()
DukeKwaku 2021-02-09 15:18:04
vek866q 2021-02-09 15:00:44
confirm from db if that user role is saved with the admin guard name. roles table

Fixed

krishu_7 2021-02-09 15:23:34
laravel_discuss-69679.jpg

krishu_7 2021-02-09 15:24:46
laravel_discuss-69680.jpg
Sry about the camera pic
Please check the screenshot 🙂
DesolatorMagno 2021-02-09 15:33:18
There are several ways to do it, for example you can use a model and declare “the enum” as a constant array, some ppl do things like.

User
TypeUserStatus

Where type return a array of option for status, you can also do it inside the User.

You can also create a constant config file where you put all yours constants.

There is also a package for these functionality.

DesolatorMagno 2021-02-09 15:37:05
At a final note, you don’t need to do it in simple array, you can do something like.

STATUS => [
‘disabled’ => [
‘input’ = ‘Disable’,
‘value’ = 1
],
];

imad_khamkhami 2021-02-09 15:48:46
laravel_discuss-69683.jpg
Answer ??
|