dacastro4 / laravel-gmail

Laravel wrapper for the Gmail API
MIT License
292 stars 134 forks source link

LaravelGmail namespace not found #210

Open bill-sketch opened 3 years ago

bill-sketch commented 3 years ago

In my controller I tried to get an email by ID

\Dacastro4\LaravelGmail::message()->get( $id ); OR LaravelGmail::message()->get( $id )

As mentioned in the Documentation:

Messages: LaravelGmail::message()->get( $id ) Returns a single email with all the information

I get this mesage :Class 'Dacastro4\LaravelGmail' not found

uacode commented 3 years ago

Put alias to config/app.php 'aliases' => [ .... 'LaravelGmail' => Dacastro4\LaravelGmail\Facade\LaravelGmail::class, ... ]