You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm getting this error, and I didn't understand why Call to undefined method DesignMyNight\\Mongodb\\Passport\\Client::confidential()
Knowing that I'm using MongoDB as a database
I sent a POST request with this header and body: Header: Content-Type:application/json Accept:application/json Body: { "email": "[email protected]", "password": "123456" }
<?php
namespace App;
use Illuminate\Contracts\Auth\MustVerifyEmail;
use DesignMyNight\Mongodb\Auth\User as Authenticatable;
use Illuminate\Notifications\Notifiable;
use Laravel\Passport\HasApiTokens;
class User extends Authenticatable
{
use Notifiable, HasApiTokens;
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'name', 'email', 'password',
];
/**
* The attributes that should be hidden for arrays.
*
* @var array
*/
protected $hidden = [
'password', 'remember_token',
];
/**
* The attributes that should be cast to native types.
*
* @var array
*/
protected $casts = [
'email_verified_at' => 'datetime',
];
}
after added confidential() METHOD IN cLIENT.PHP FILE ITS getting new error
Client error: POST http://consumer.com/oauth/token resulted in a 400 Bad Request response:\n
{"error":"invalid_request","error_description":"The request is missing a required parameter, includes an invalid paramet (truncated...)\n
I'm getting this error, and I didn't understand why
Call to undefined method DesignMyNight\\Mongodb\\Passport\\Client::confidential()
Knowing that I'm using MongoDB as a database
I sent a POST request with this header and body:
Header:
Content-Type:application/json Accept:application/json
Body:
{ "email": "[email protected]", "password": "123456" }
My Controller function :
My composer.json file:
My User Model:
The Return:
The text was updated successfully, but these errors were encountered: