Hi everyone, can I post non laravel php questions here?

|
texas_a 2021-02-26 09:37:49
classicalrio 2021-02-26 09:29:34
Which api package are you using?

you can help me bro ?

Sandhya M 2021-02-26 09:38:08
I mean creating authentication for multiple user . There are default users table is defined in database. I want to use mutiple registration forms for user,admin, super admin, contractor.
Narayan Ji 2021-02-26 09:38:58
Sandhya M 2021-02-26 09:32:24
If anybody knows please suggest understandable source to learn multi authentication in laravel.

Use package spatie

Narayan Ji 2021-02-26 09:39:27
Ayushi2020 2021-02-26 09:30:40
https://www.linkedin.com/posts/ayushi-goel-066818152_novostack-laraveldevelopers-pythondevelopers-activity-6770952297842302976-1Uv8

Remotely

Narayan Ji 2021-02-26 09:39:46
Sandhya M 2021-02-26 09:32:24
If anybody knows please suggest understandable source to learn multi authentication in laravel.

Spatie role based package

2021-02-26 09:41:10
Sandhya M 2021-02-26 09:38:08
I mean creating authentication for multiple user . There are default users table is defined in database. I want to use mutiple registration forms for user,admin, super admin, contractor.

Great… So I’m sure you need roles or permissions based system.

Multiple authentication is nothing but a roles or permissions based authentication.

You may try spatie, laratrust or make custom with gates, policies, middleware.

Ryan151995 2021-02-26 09:56:07
Anyone have any idea about orchard payment gateway integration
Ryan151995 2021-02-26 09:57:18
Service provided by appsNmobile Solution limited
2021-02-26 10:47:11
Deen 2021-02-26 05:11:40
Hi everyone, can I post non laravel php questions here?
I have s php challenge that I hope someone can help me with.

I have an array of alphabets which I want to iterate through to form all possible 3 words

$alpha = array( ‘a’,’b’,’c’,’d’,’e’,….’z’);
Iterate $alpha using for loop or while loop such that results is
aaa
aab
aac…..
aaz

aba
abb
abc…
abz

aca
acb

I appreciate any help

laravel_discuss-71766.jpg
I think this is enough

Aakash Gupta 2021-02-26 11:03:19
Hii, anyone help me, to dynamic web page creation in php
2021-02-26 11:04:59
What’s the matter bro
Aakash Gupta 2021-02-26 11:09:11
Bro, i want to create dynamic web page in php sql
Bhuvi100 2021-02-26 11:29:46
Aakash Gupta 2021-02-26 11:03:19
Hii, anyone help me, to dynamic web page creation in php

LOL you don’t know PHP, but joined in a PHP framework group

hypernxf 2021-02-26 11:47:39
2021-02-26 11:04:59
What’s the matter bro

looks correct

Virendra_Kumar_B 2021-02-26 12:19:39
Laravel Developer with 2 years of min experience. Immediate Joining. Interested candidate can send resume to hr@webdigitalmantra.in
valenci007 2021-02-26 12:27:49
Hi, I am trying to return a custom json response when a user access a protected route without a valid token/ token. i have written the my custom response inside the authenticate middleware, but i still get response that i don’t know how to override below is the response i get and my code inside authenticate middleware
{“message”: “Unauthenticated”}
my custom response
protected function redirectTo($request)
{
if ($request->expectsJson()) {
return response()->json([
‘status’ => ‘failed’,
“message” => “unauthenticated”,
“error” => “unauthenticated”
],401);
}
}
segungreat 2021-02-26 12:35:34
Virendra_Kumar_B 2021-02-26 12:19:39
Laravel Developer with 2 years of min experience. Immediate Joining. Interested candidate can send resume to hr@webdigitalmantra.in

Do you accept remote

segungreat 2021-02-26 12:40:56
valenci007 2021-02-26 12:27:49
Hi, I am trying to return a custom json response when a user access a protected route without a valid token/ token. i have written the my custom response inside the authenticate middleware, but i still get response that i don’t know how to override below is the response i get and my code inside authenticate middleware
{“message”: “Unauthenticated”}
my custom response
protected function redirectTo($request)
{
if ($request->expectsJson()) {
return response()->json([
‘status’ => ‘failed’,
“message” => “unauthenticated”,
“error” => “unauthenticated”
],401);
}
}

Can you show the route and code, screenshot

valenci007 2021-02-26 12:45:33
segungreat 2021-02-26 12:40:56
Can you show the route and code, screenshot

laravel_discuss-71783.jpg

valenci007 2021-02-26 12:45:33
segungreat 2021-02-26 12:40:56
Can you show the route and code, screenshot

laravel_discuss-71782.jpg
here is the custom response

valenci007 2021-02-26 12:46:35
You can see i didn’t pass token but i wanted my custom message to show
veddishant 2021-02-26 13:39:56
Narayan Ji 2021-02-26 09:25:03
Its means…you want to exit condition with display test

🤦Ohh thnx but my question! Is why if condition executed and return true..
How 0 and skip is eqal

rachidloukili 2021-02-26 15:41:31
Rahi62 2021-02-25 22:47:04
Dear Reny

Hi please try to downgraded from laravel latest to laravel 8.2 for example maybe your issue fixed automatically, and you may also try this : in AppServiceProvider…. Boot add
Shema::defaultStringLength(191);

hypernxf 2021-02-26 15:42:43
veddishant 2021-02-26 13:39:56
🤦Ohh thnx but my question! Is why if condition executed and return true..
How 0 and skip is eqal

Because string by default when compare will always return true

hypernxf 2021-02-26 15:43:12
so what you need to do is to use strict comparison
hypernxf 2021-02-26 15:44:30
0 === ‘skip’ then now it will return false
Nidhi Jain 2021-02-26 16:16:10
laravel_discuss-71794.jpg

Nidhi Jain 2021-02-26 16:16:20
*Urgent opening*

HIRING !! HIRING !! HIRING !!

Namaste Front end developers!!

Looking for a job change?? No worries at all..

Codecaste is hiring front end developers…

*Apply fast*

Position : Front end developer

Industry : IT industry

Job location : Ahmedabad(Gujarat)

Experience : 2-3 years

CTC: No bar for right candidate

5 days working

share me CV on nidhi@codecaste.com

#urgentrequirement #frontend #ahmedabadjobs #itjobs #frontenddeveloper #ahmedabaditjobs #codecaste

o_sayfullayev 2021-02-26 16:29:37
Nidhi Jain 2021-02-26 16:16:20
*Urgent opening*

HIRING !! HIRING !! HIRING !!

Namaste Front end developers!!

Looking for a job change?? No worries at all..

Codecaste is hiring front end developers…

*Apply fast*

Position : Front end developer

Industry : IT industry

Job location : Ahmedabad(Gujarat)

Experience : 2-3 years

CTC: No bar for right candidate

5 days working

share me CV on nidhi@codecaste.com

#urgentrequirement #frontend #ahmedabadjobs #itjobs #frontenddeveloper #ahmedabaditjobs #codecaste

What about salary in USD?

M.A 2021-02-26 16:46:57
hypernxf 2021-02-26 15:42:43
Because string by default when compare will always return true

not any string

M.A 2021-02-26 16:47:10
veddishant 2021-02-26 13:39:56
🤦Ohh thnx but my question! Is why if condition executed and return true..
How 0 and skip is eqal

read this code:

<?php

echo intval(“Hello”) . “n”; //return 0
echo intval(“32”) . “n”;; //return 32

//if(string == number) ==> if(intval(string) == number)

//if(“Hello” == 0) ==> if(intval(“Hello”) == 0) ==> if(0 == 0) : true

//if(“32” == 0) ==> if(intval(“32”) == 0) ==> if(32 == 0) : false

if(“Hello” == 0)
{
echo “Hello is 0” . “n”;
}else {
echo “Hello is not 0” . “n”;
}

if(“32” == 0)
{
echo “32 is 0” . “n”;
}else {
echo “32 is not 0” . “n”;
}

hypernxf 2021-02-26 16:49:06
that’s only because PHP string data type magically casts as integer when it’s a number
hypernxf 2021-02-26 16:49:28
if there’s alphabet inside it will not be known as a integer
hypernxf 2021-02-26 16:49:39
thus return true
M.A 2021-02-26 16:50:04
hypernxf 2021-02-26 16:49:28
if there’s alphabet inside it will not be known as a integer

|