Can someone please throw more light on the best use case of Laravel policies?

|
Jomitz 2020-11-21 19:45:24
Screen shot the error
bestlasupport 2020-11-21 21:18:14
laravel_discuss-59909.jpg
why validator undefined?!
hypernxf 2020-11-21 21:31:45
I think you didn’t import Validator
2020-11-21 23:53:18
Can someone please throw more light on the best use case of Laravel policies? I find it so interesting, but I have a little idea about perfect development situation it should be deploy.

Thanks in anticipation guys😁

DesolatorMagno 2020-11-21 23:55:53
2020-11-21 23:53:18
Can someone please throw more light on the best use case of Laravel policies? I find it so interesting, but I have a little idea about perfect development situation it should be deploy.

Thanks in anticipation guys😁

Everywhere? i use it always in every project..

DesolatorMagno 2020-11-21 23:56:51
Did you read the documentation? there are a couple of basic examples
PHP Begginer 2020-11-21 23:58:42
Please I want suggestion of the best packagist I can use for online videos streaming
2020-11-22 00:00:47
DesolatorMagno 2020-11-21 23:56:51
Did you read the documentation? there are a couple of basic examples

I have done that @DesolatorMagno. Though I have to restudy since am currently new to the Framework. At first, I felt a bit overwhelm by the workings of things in Laravel but am so optimistic about my learning pace.

DesolatorMagno 2020-11-22 00:00:55
DesolatorMagno 2020-11-21 23:55:53
Everywhere? i use it always in every project..

It helps a lot when there are multiple conditions and permissions for each action, for example a person may have rights to view a list and create, but not edit or delete (just like a cashier in a supermarket using the system).

2020-11-22 00:03:55
DesolatorMagno 2020-11-22 00:00:55
It helps a lot when there are multiple conditions and permissions for each action, for example a person may have rights to view a list and create, but not edit or delete (just like a cashier in a supermarket using the system).

Oh beautiful. Thanks. I believe the more I am committed in my study, the more I will understand better

DesolatorMagno 2020-11-22 00:06:44
Usually you use a tool when you need it, so while gaining experience by working in apps you get to need more tools (learn about them), is a cicle.
ili145 2020-11-22 00:34:27
laravel_discuss-59921.jpg
run this command and return this message
ili145 2020-11-22 00:36:11
ili145 2020-11-22 00:34:27
run this command and return this message

but not exists this storage in public

Dkhicher 2020-11-22 04:05:44
PHP Begginer 2020-11-21 23:58:42
Please I want suggestion of the best packagist I can use for online videos streaming

Php ffmpeg

2020-11-22 09:41:38
DesolatorMagno 2020-11-22 00:06:44
Usually you use a tool when you need it, so while gaining experience by working in apps you get to need more tools (learn about them), is a cicle.

Ok I will definitely do that.

Relaxed Guy 2020-11-22 09:55:10
Swagna Andy:
Guys GoodMornin

Am getting an error of undefined index .. bcoz the array doesnt have a value for index

How do I cater for the empty … value in the array index

hypernxf 2020-11-22 14:15:13
Relaxed Guy 2020-11-22 09:55:10
Swagna Andy:
Guys GoodMornin

Am getting an error of undefined index .. bcoz the array doesnt have a value for index

How do I cater for the empty … value in the array index

you can try if (isset($array[4])) { // Do what you got to do }

hypernxf 2020-11-22 14:15:42
or if you are trying to use the array
hypernxf 2020-11-22 14:16:05
$data = $array[4] ?? ‘something else’;
hypernxf 2020-11-22 14:16:30
It will use ‘something else’ if $array[4] is undefined
rohan_the_boss 2020-11-22 15:29:20
Relaxed Guy 2020-11-22 09:55:10
Swagna Andy:
Guys GoodMornin

Am getting an error of undefined index .. bcoz the array doesnt have a value for index

How do I cater for the empty … value in the array index

this function will be helpful,

data_get($array, ‘index’, ‘default value’);

Relaxed Guy 2020-11-22 16:11:20
rohan_the_boss 2020-11-22 15:29:20
this function will be helpful,

data_get($array, ‘index’, ‘default value’);

Written this format… but ts not working

Relaxed Guy 2020-11-22 16:12:36
Both not working
{{$notification->data[‘greeting’]?:’Not Available’}}
{{$notification->data? $notification->data[‘greeting’] :’Not Available’}}
rohan_the_boss 2020-11-22 16:18:03
Relaxed Guy 2020-11-22 16:12:36
Both not working
{{$notification->data[‘greeting’]?:’Not Available’}}
{{$notification->data? $notification->data[‘greeting’] :’Not Available’}}

data_get($notification->data, ‘greeting’, ‘Not Available’);

try this…

hypernxf 2020-11-22 16:18:49
Relaxed Guy 2020-11-22 16:11:20
Written this format… but ts not working

read carefully… it’s two question mark

Relaxed Guy 2020-11-22 16:24:51
rohan_the_boss 2020-11-22 16:18:03
data_get($notification->data, ‘greeting’, ‘Not Available’);

try this…

Thnx

Relaxed Guy 2020-11-22 16:25:07
It has worked
mohsetiawanmodeong 2020-11-22 17:14:02
#ask, if laravel 5.2, 5.8 and 7 support PHP how much? Can the 3 versions be run at once in Laragon without mutually changing the PHP version?
mohsetiawanmodeong 2020-11-22 17:25:24
ok
mohsetiawanmodeong 2020-11-22 17:27:17
ya, but php version in official web nothing php 7.1 and before
mohsetiawanmodeong 2020-11-22 17:27:54
which exists php 7.2-now
mohsetiawanmodeong 2020-11-22 17:28:04
in website php
Ganesh 2020-11-22 19:11:17
laravel_discuss-59959.jpg

Ganesh 2020-11-22 19:11:18
laravel_discuss-59960.jpg

Ganesh 2020-11-22 19:11:19
laravel_discuss-59961.jpg
Jo what is the problem some one help me
Ganesh 2020-11-22 19:11:56
Login attempt returns false when it correct
Jomitz 2020-11-22 19:12:37
Password should be hashed and saved
Jomitz 2020-11-22 19:12:51
Laravel checks with hashed password
Jomitz 2020-11-22 19:13:09
Use Hash::make()
Jomitz 2020-11-22 19:13:23
When saving to database
|