mercredi 27 décembre 2017

Laravel Error on Production on HasApiToken

I am new on laravel and I have created a basic dashboard with the api endpoints. Everything works fine on Localhost , but when I have hosted it on the server I get an error saying

Class Laravel\Passport\HasAPITokens; not found on User.php

Here s what my user.php looks like

<?php

namespace App;

use Illuminate\Notifications\Notifiable;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Laravel\Passport\HasAPITokens;

class User extends Authenticatable
{
    use Notifiable, HasApiTokens;

    protected $fillable = [
        'name', 'email', 'password',
    ];


    protected $hidden = [
        'password', 'remember_token',
    ];
}
?>

Also the api endpoint also stopped working saying the Controller class I have created is not found.

I have followed the steps to publish here : https://www.youtube.com/watch?v=6g8G3YQtQt4&t=557s



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2liABSG
via IFTTT

Aucun commentaire:

Enregistrer un commentaire