Does anyone know how I can add a function to my user model which when I call that function using user object, that function get access to the user object?

|
rebory 2019-12-07 14:10:54
route is
rebory 2019-12-07 14:11:14
laravel_discuss-20332.jpg

rebory 2019-12-07 14:12:40
<form method=”post” autocomplete=”off” action=”{{ route(‘send.contact.mail’) }}”> @csrf
rebory 2019-12-07 14:13:33
i was sent you complete email code a-z .
rebory 2019-12-07 14:14:02
rebory 2019-12-07 14:13:33
i was sent you complete email code a-z .

why you need log

2019-12-07 16:51:51
Can anyone tell me here that how can i make moving icon animation
2019-12-07 18:21:01
Alguien trabajando con voyager?
skys215 2019-12-07 18:49:58
2019-12-07 18:21:01
Alguien trabajando con voyager?

sorry, English group

kosorl_seam 2019-12-07 19:05:33
Hi all guy How to ping location on map by api ?
Fatima 2019-12-07 19:33:36
laravel_discuss-20358.jpg
Hello, I wrote this code and I expect true or false,but it has errorπŸ‘‡
Fatima 2019-12-07 19:33:52
laravel_discuss-20359.jpg

Fatima 2019-12-07 19:34:26
Fatima 2019-12-07 19:33:52

Can you help me solving this ???

karsaho 2019-12-07 19:50:11
Fatima 2019-12-07 19:34:26
Can you help me solving this ???

Do you understand Arabic?

Fatima 2019-12-07 19:50:28
karsaho 2019-12-07 19:50:11
Do you understand Arabic?

No

Fatima 2019-12-07 19:50:45
I need bolean
karsaho 2019-12-07 19:51:09
Fatima 2019-12-07 19:50:28
No

Instead of using return $value; use return json_encode($value);

karsaho 2019-12-07 19:51:42
It should print the value as string
Fatima 2019-12-07 19:55:43
karsaho 2019-12-07 19:51:09
Instead of using return $value; use return json_encode($value);

It did work

Fatima 2019-12-07 19:55:49
ThanksπŸ™πŸ™πŸŒΉπŸŒΉ
rrajesh011 2019-12-07 19:58:33
2019-12-07 11:44:07
you edit success by status Β» ok

Thanks, I added startsession in middlewareroute which was causing toastr not to work

karsaho 2019-12-07 20:09:10
Fatima 2019-12-07 19:55:49
ThanksπŸ™πŸ™πŸŒΉπŸŒΉ

Welcome

2019-12-07 21:54:32
rrajesh011 2019-12-07 19:58:33
Thanks, I added startsession in middlewareroute which was causing toastr not to work

your welcome

oxbir 2019-12-07 21:54:57
what is this error?
oxbir 2019-12-07 21:55:01
This action is unauthorized.
2019-12-07 21:56:02
error 403 😁
oxbir 2019-12-07 21:56:16
yes
2019-12-07 21:58:28
Gate ?
oxbir 2019-12-07 22:00:23
AuthServiceProvider.PHP
oxbir 2019-12-07 22:00:44
public function boot()
{
$this->registerPolicies();
foreach ($this->getPermissions() as $permission) {
Gate::define($permission->name , function ($user) use($permission){
return $user->hasRole($permission->roles);
});
}
}3.
2019-12-07 22:02:55
define some permissions
2019-12-07 22:02:55
permissiontableseeder
2019-12-07 22:02:55
you can create now
2019-12-07 22:02:55
yes
2019-12-07 22:03:48
then you can make constructor in controller

$this->middleware(‘can:the name of permission’

2019-12-07 22:04:19
in view :

can (‘the name of permission’)

2019-12-07 22:04:46
in route :

->middleware(‘can:the name of permission’

vfd14889 2019-12-08 09:14:23
PHP Barcelona conference was Rasmus Lerdorf the creator of PHP and he gave an excellent talk about the history of PHP, PHP 7.4 & 8, career advice, motivation, burn-out and focusing on things that really matter.

https://youtu.be/Qa_xVjTiOUw

Rasmus Lerdorf – 25 years of PHPYouTube
It is a real privilege to have the creator of the PHP language kicking off the return of the conference with an inspiring keynote!

Rasmus will talk about all the shiny new things in PHP 7.4 and PHP 8 we all love but the keynote will also cover important things in our careers such as motivation, burn-out and focusing on things that really matter

Amrutam Sunil 2019-12-08 12:33:52
Can anyone share phpstorm ide activation code
Amrutam Sunil 2019-12-08 12:33:57
To crack the licence
Pro 2019-12-08 12:55:25
Hi. I’m looking for webmin source code in vps server where I can find it?
Manoj Mehta 2019-12-08 13:32:33
Amrutam Sunil 2019-12-08 12:33:52
Can anyone share phpstorm ide activation code

56ZS5PQ1RF-eyJsaWNlbnNlSWQiOiI1NlpTNVBRMVJGIiwibGljZW5zZWVOYW1lIjoi5q2j54mI5o6I5p2DIC4iLCJhc3NpZ25lZU5hbWUiOiIiLCJhc3NpZ25lZUVtYW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EgGA1UdIwRBMD+AFKOetkhnQhI2Qb1t4Lm0oFKLl/GzoRykGjAYMRYwFAYDVQQDDA1KZXRQcm9maWxlIENBggkA0myxg7KDeeEwEwYDVR0lBAwwCgYIKwYBBQUHAwEwCwYDVR0PBAQDAgWgMA0GCSqGSIb3DQEBCwUAA4ICAQAF8uc+YJOHHwOFcPzmbjcxNDuGoOUIP+2h1R75Lecswb7ru2LWWSUMtXVKQzChLNPn/72W0k+oI056tgiwuG7M49LXp4zQVlQnFmWU1wwGvVhq5R63Rpjx1zjGUhcXgayu7+9zMUW596Lbomsg8qVve6euqsrFicYkIIuUu4zYPndJwfe0YkS5nY72SHnNdbPhEnN8wcB2Kz+OIG0lih3yz5EqFhld03bGp222ZQCIghCTVL6QBNadGsiN/lWLl4JdR3lJkZzlpFdiHijoVRdWeSWqM4y0t23c92HXKrgppoSV18XMxrWVdoSM3nuMHwxGhFyde05OdDtLpCv+jlWf5REAHHA201pAU6bJSZINyHDUTB+Beo28rRXSwSh3OUIvYwKNVeoBY+KwOJ7WnuTCUq1meE6GkKc4D/cXmgpOyW/1SmBz3XjVIi/zprZ0zf3qH5mkphtg6ksjKgKjmx1cXfZAAX6wcDBNaCL+Ortep1Dh8xDUbqbBVNBL4jbiL3i3xsfNiyJgaZ5sX7i8tmStEpLbPwvHcByuf59qJhV/bZOl8KqJBETCDJcY6O2aqhTUy+9x93ThKs1GKrRPePrWPluud7ttlgtRveit/pcBrnQcXOl1rHq7ByB8CFAxNotRUYL9IF5n3wJOgkPojMy6jetQA5Ogc8Sm7RG6vg1yow==

2019-12-08 13:34:17
wtf πŸ˜…β˜οΈ
Manoj Mehta 2019-12-08 13:34:52
Amrutam Sunil 2019-12-08 12:33:57
To crack the licence

Or join group for activation process
Online Stackoverflow Group for fixing all your problem
https://t.me/joinchat/CTuC5ES0_pzsniSR_31kmg

StackoverflowTelegram
please obey the rules
πŸ‘‰ Don’t use bad words
πŸ‘‰ Don’t share sexual content
πŸ‘‰ Don’t miss behave to other users
πŸ‘‰ Don’t talk about political things

line Stackoverflow Group for solving all your problem
https://t.me/joinchat/CTuC5ES0_pzsniSR_31kmg

skys215 2019-12-08 13:54:50
Pro 2019-12-08 12:55:25
Hi. I’m looking for webmin source code in vps server where I can find it?

first you must know what server are you running? nginx/apache?
Next find out where is the configuration file
And then find where’s the path which you are looking for

DeveloperProgrammer 2019-12-08 15:50:44
Ψ°
rethdaro 2019-12-08 16:38:09
laravel_discuss-20508.jpg
please help me…
skys215 2019-12-08 17:01:59
Use axios
2019-12-08 17:26:08
rethdaro 2019-12-08 16:38:09
please help me…

It’s simple! to use an API you need to make an ajax request. of course, you can make the request using a server-side script, but there isn’t any reason for that. Why your server when the client can do it?

ErgashevXurshid 2019-12-08 17:51:24
rethdaro 2019-12-08 16:38:09
please help me…

Use axios or ajax

2019-12-08 18:04:31
Does anyone know how I can add a function to my user model which when I call that function using user object, that function get access to the user object? Let’s simplify that.

$user = one the users!
$user()->isOnline();

and I want an access to the $user obejct in my function like this:

function isOnline(){
$user_last_activity = $user->last_activity;
}

|