How to do we get a full relative hostname in Laravel 8?

|
hypernxf 2020-11-26 20:19:17
Then the possibility is probably somehow data type differences
hypernxf 2020-11-26 20:19:34
I’m sorry I dont have the answer only guesses.
pranavsense 2020-11-26 20:20:00
hypernxf 2020-11-26 20:14:34
@bugfro https://stackoverflow.com/questions/33348508/mysql-decimal-type-out-of-range-error

thanks for this btw

hypernxf 2020-11-26 20:20:03
I remember facing a similar issue where the data type messes with the value.
hypernxf 2020-11-26 20:20:20
either that or character set. one of those
hypernxf 2020-11-26 20:20:32
You are welcome.
JeevaniSM 2020-11-27 00:02:13
hi friends, a quick help ..

dd(request()->getHttpHost()); return only the domain name without http or https .. how to do we get a full relative hostname in Laravel 8 ?
my website is http://www.thisisatest.com/blog

so how can I get $relHost=http://www.thisisatest.com/blog
Any help pls ?

Saji 2020-11-27 00:15:13
JeevaniSM 2020-11-27 00:02:13
hi friends, a quick help ..

dd(request()->getHttpHost()); return only the domain name without http or https .. how to do we get a full relative hostname in Laravel 8 ?
my website is http://www.thisisatest.com/blog

so how can I get $relHost=http://www.thisisatest.com/blog
Any help pls ?

The function:

getSchemeAndHttpHost()

instead of

getHttpHost()

should help.

JeevaniSM 2020-11-27 00:25:29
Saji 2020-11-27 00:15:13
The function:

getSchemeAndHttpHost()

instead of

getHttpHost()

should help.

thanx

carolinemms 2020-11-27 07:09:25
Halo sir
carolinemms 2020-11-27 07:09:45
I want’t to ask
carolinemms 2020-11-27 07:10:11
What the solve of this problem?
carolinemms 2020-11-27 07:10:27
laravel_discuss-60463.jpg

Kamalwebdev 2020-11-27 07:11:31
Show me env file
carolinemms 2020-11-27 07:49:04
laravel_discuss-60465.jpg

carolinemms 2020-11-27 07:49:28
Kamalwebdev 2020-11-27 07:11:31
Show me env file

This is sir

Kamalwebdev 2020-11-27 08:07:37
DB_PASSWORD leave this blank
Kamalwebdev 2020-11-27 08:07:59
You’re not using password
carolinemms 2020-11-27 08:13:44
laravel_discuss-60470.jpg

carolinemms 2020-11-27 08:13:57
carolinemms 2020-11-27 08:13:44

done sir

carolinemms 2020-11-27 08:14:08
so what the next step, sir?
Kamalwebdev 2020-11-27 08:20:54
Save this file
Kamalwebdev 2020-11-27 08:21:07
And run your code
carolinemms 2020-11-27 08:21:43
Kamalwebdev 2020-11-27 08:20:54
Save this file

done sir

carolinemms 2020-11-27 08:22:03
but still like here
carolinemms 2020-11-27 08:22:15
laravel_discuss-60477.jpg

Kamalwebdev 2020-11-27 08:26:11
Run php artisan serve again
dineshmali164 2020-11-27 08:44:29
Hello guys
I am send mail from my vps server mail I created as private mali is there any other setting or configuration for vps sever mail send
carolinemms 2020-11-27 08:45:59
Kamalwebdev 2020-11-27 08:26:11
Run php artisan serve again

Done

carolinemms 2020-11-27 08:46:11
carolinemms 2020-11-27 08:22:15

But still like here

Niraj 2020-11-27 09:12:15
Hi All, Join 2 Day online certification #workshop https://bit.ly/37d7M27 and master #DevOps from home with the help of an industry expert. Includes a LIVE project to deploy an E-Comm application using #Docker & #Jenkins.

Automate Software Lifecycle in E-Comm with DevOps – Edureka DevOps Workshopresources.edureka.co
This is a 2 Day (4 Hours) Edureka DevOps on Automating Software Lifecycle in E-Comm with DevOps.
ismael_medhat 2020-11-27 09:38:16
I want know how make multi sperated guards (user – admin – instructor) authentication in laravel 8
2020-11-27 10:13:12
I hope will help
https://github.com/orhan55555/vue-laravel-axios

orhanerday/vue-laravel-axiosGitHub
Laravel, Vue Crud Application. Contribute to orhanerday/vue-laravel-axios development by creating an account on GitHub.
2020-11-27 10:21:00
ismael_medhat 2020-11-27 09:38:16
I want know how make multi sperated guards (user – admin – instructor) authentication in laravel 8

See Multi Auth in Laravel 8 official documentation

ismael_medhat 2020-11-27 10:22:10
Ok thank
2020-11-27 10:22:31
carolinemms 2020-11-27 08:46:11
But still like here

You have configured your db with username and password thats why it shows access denied

Kamalwebdev 2020-11-27 10:25:03
2020-11-27 10:22:31
You have configured your db with username and password thats why it shows access denied

It’s fixed now

TOXmoltox 2020-11-27 11:35:09
Sysome 2020-11-26 09:34:19
Hi brothers. I am beginner with laravel. I want to create user role permission in project. Which package that easy to use? Could you have sample small portion of that for me? Thanks.

https://spatie.be/docs/laravel-permission/v3/introduction

Introduction | laravel-permissionspatie.be
mrhisenber 2020-11-27 11:53:56
I already have a routes web based project, I want to make App and use laravel API for that,

I created authentication using laravel traditional Auth scaffolding

My question is, can I use api authentication and web based authentication together for user login and other stuff without disturbing previous web based authentication??

Give suggestions

BvkDev 2020-11-27 12:05:54
Hello
I want to use jwt when logging in in addition to tokens
I will send a referesh token, which I do using the following code, but the problem is that I receive an unauthorized token when using it. Can anyone help?

return $this->respondWithToken($token, [‘refresh_token’ => ‘Bearer ‘.auth()->refresh()]);

Response:
{
“token”: “Bearer eyJ0eXAi…”,
“refresh_token”: “Bearer eyJ0eXAiO…”
}

|