Is it a legacy project?

|
Kalven Klein 2020-04-24 02:22:16
laravel_discuss-34534.jpg

Kalven Klein 2020-04-24 02:23:15
-BLUE AND HOLD MACAWS Blue and Gold macaws, Ara ararauna, are probably the most prevalent of the large parrot family known as macaws. Blue and Gold macaws are spectacularly beautiful with glowing bright blue bodies, brilliant orange breasts and tiny black facial feathers that run like rows of stitches across their facial patches of white skin. They can range from 34 to 36 inches in length. Blue and Gold macaws weigh between 900 to 1200 grams.
rijisoft 2020-04-24 02:32:25
Kalven Klein 2020-04-24 02:23:15
-BLUE AND HOLD MACAWS Blue and Gold macaws, Ara ararauna, are probably the most prevalent of the large parrot family known as macaws. Blue and Gold macaws are spectacularly beautiful with glowing bright blue bodies, brilliant orange breasts and tiny black facial feathers that run like rows of stitches across their facial patches of white skin. They can range from 34 to 36 inches in length. Blue and Gold macaws weigh between 900 to 1200 grams.

Very important elequent tips on laravel πŸ‘πŸ‘πŸ‘

berto309 2020-04-24 02:58:15
Good day .. Please I’m using guzzle to test login api endpoint but if I enter the wrong password .. I get an error 400 code instead of error 401 code …. what should i do ? please help
berto309 2020-04-24 02:59:25
berto309 2020-04-24 02:58:15
Good day .. Please I’m using guzzle to test login api endpoint but if I enter the wrong password .. I get an error 400 code instead of error 401 code …. what should i do ? please help

public function login(Request $request)
{

$http = new Client;

try {
$response = $http->post(‘http://laravel-todoapp.test/api/login’, [
‘form_params’ => [
‘grant_type’ => ‘password’,
‘client_id’ => 2,
‘client_secret’ =>’zOEsoX0xxM6wNl3ElWwHkDPePaODzsWtmWlz5y7n’ ,
‘username’ => $request->username,
‘password’ => $request->password,
]
]);

return $response->getBody();
} catch (BadResponseException $e) {
if ($e->getCode() === 400) {
return response()->json(‘Invalid Request. Please enter a username or a password.’, $e->getCode());
} else if ($e->getCode() === 401) {
return response()->json(‘Your credentials are incorrect. Please try again’, $e->getCode());
}

return response()->json(‘Something went wrong on the server.’, $e->getCode());
}
}

ram_the_archer 2020-04-24 07:14:47
laravel_discuss-34543.jpg

ram_the_archer 2020-04-24 07:15:11
ram_the_archer 2020-04-24 07:14:47

Help me out someone please

ram_the_archer 2020-04-24 07:15:54
ram_the_archer 2020-04-22 03:41:03
Can anyone help me in this vhost

Update compsoser

ram_the_archer 2020-04-24 07:16:05
Changed php.ini
ram_the_archer 2020-04-24 07:16:19
Still i getting this error
ram_the_archer 2020-04-24 07:16:25
Please help me
hiteshv253 2020-04-24 07:20:09
ram_the_archer 2020-04-24 07:14:47

sudo apt-get install php7.0-mysql
put php.ini file path

;extension=pdo_mysql.so
Add this line

ram_the_archer 2020-04-24 07:26:52
Added ; extension=pdo_msql.so
ram_the_archer 2020-04-24 07:27:01
Not working
2020-04-24 07:27:18
How to send api response with collection.. can anyone give me a brief idea
skys215 2020-04-24 07:28:29
ram_the_archer 2020-04-24 07:26:52
Added ; extension=pdo_msql.so

did you restart apache/nginx or restart php-fpm?

ram_the_archer 2020-04-24 07:28:50
Yes
skys215 2020-04-24 07:29:04
2020-04-24 07:27:18
How to send api response with collection.. can anyone give me a brief idea

have you tried
response()->json(new UserCollection($user))

skys215 2020-04-24 07:29:57
ram_the_archer 2020-04-24 07:15:11
Help me out someone please

what’s your DB_CONNECTION in .env

2020-04-24 07:30:04
I have some variables inside a foreach loop, how to send them as api at each iterations
ram_the_archer 2020-04-24 07:30:31
skys215 2020-04-24 07:29:57
what’s your DB_CONNECTION in .env

Mysql

skys215 2020-04-24 07:32:29
2020-04-24 07:30:04
I have some variables inside a foreach loop, how to send them as api at each iterations

use foreach to add them

skys215 2020-04-24 07:33:42
ram_the_archer 2020-04-24 07:26:52
Added ; extension=pdo_msql.so

remove the ; from the first line and restart apache/nginx/php-fpm or iis

ram_the_archer 2020-04-24 07:34:56
skys215 2020-04-24 07:33:42
remove the ; from the first line and restart apache/nginx/php-fpm or iis

Not working sir

skys215 2020-04-24 07:35:11
use phpinfo(); and search for pdo_mysql
ram_the_archer 2020-04-24 07:48:22
skys215 2020-04-24 07:35:11
use phpinfo(); and search for pdo_mysql

laravel_discuss-34563.jpg

hiteshv253 2020-04-24 07:52:38
drop your database and emigrated it,using cmd
skys215 2020-04-24 08:08:12
which version of laravel are you using
ram_the_archer 2020-04-24 08:16:49
skys215 2020-04-24 08:08:12
which version of laravel are you using

3.1.0

skys215 2020-04-24 08:40:35
What? The latest version is Laravel7
skys215 2020-04-24 08:40:59
Is it a legacy project?
Dhana 2020-04-24 08:41:36
ram_the_archer 2020-04-24 07:14:47

Did u checked
drivers in config->database in file

ram_the_archer 2020-04-24 08:46:10
Dhana 2020-04-24 08:41:36
Did u checked
drivers in config->database in file

How

daniel007in 2020-04-24 09:14:45
does any have opentok in laravel
daniel007in 2020-04-24 09:15:01
one to one video chat
daniel007in 2020-04-24 09:15:49
Actually open source or free need
Relaxed Guy 2020-04-24 09:20:11
laravel_discuss-34574.jpg

Relaxed Guy 2020-04-24 09:20:14
Guys how do I handle the paginated data
Relaxed Guy 2020-04-24 09:20:31
From that api…
Relaxed Guy 2020-04-24 09:20:37
That’s the data returned
berto309 2020-04-24 09:20:48
berto309 2020-04-24 02:59:25
public function login(Request $request)
{

$http = new Client;

try {
$response = $http->post(‘http://laravel-todoapp.test/api/login’, [
‘form_params’ => [
‘grant_type’ => ‘password’,
‘client_id’ => 2,
‘client_secret’ =>’zOEsoX0xxM6wNl3ElWwHkDPePaODzsWtmWlz5y7n’ ,
‘username’ => $request->username,
‘password’ => $request->password,
]
]);

return $response->getBody();
} catch (BadResponseException $e) {
if ($e->getCode() === 400) {
return response()->json(‘Invalid Request. Please enter a username or a password.’, $e->getCode());
} else if ($e->getCode() === 401) {
return response()->json(‘Your credentials are incorrect. Please try again’, $e->getCode());
}

return response()->json(‘Something went wrong on the server.’, $e->getCode());
}
}

any help

skys215 2020-04-24 09:25:29
Relaxed Guy 2020-04-24 09:20:14
Guys how do I handle the paginated data

foreach?

Relaxed Guy 2020-04-24 09:26:00
skys215 2020-04-24 09:25:29
foreach?

Dont get you

skys215 2020-04-24 09:26:31
berto309 2020-04-24 02:58:15
Good day .. Please I’m using guzzle to test login api endpoint but if I enter the wrong password .. I get an error 400 code instead of error 401 code …. what should i do ? please help

you need to check why it is returnning 400

skys215 2020-04-24 09:26:56
Relaxed Guy 2020-04-24 09:26:00
Dont get you

what do you mean by handle the paginated data? what are you willing to do?

Relaxed Guy 2020-04-24 09:28:10
skys215 2020-04-24 09:26:56
what do you mean by handle the paginated data? what are you willing to do?

Display it in a tabular format

Relaxed Guy 2020-04-24 09:28:13
Am using curl
skys215 2020-04-24 09:31:09
Relaxed Guy 2020-04-24 09:28:10
Display it in a tabular format

that would not be a laravel problem

Relaxed Guy 2020-04-24 09:31:27
It’s not
Relaxed Guy 2020-04-24 09:31:38
Bt I have never worked on it
|