I am trying to use this package in a Laravel 5.4 project (php 7.1 x86 on Windows 7 via XAMPP): http://ift.tt/2eUwSYP
As per instruction, I've loaded the package onto my project using:
composer require matriphe/larinfo
Then I've added the service provider in config/app.php
like this:
Matriphe\Larinfo\LarinfoServiceProvider::class,
and added the Facade alias like this:
'Larinfo' => Matriphe\Larinfo\LarinfoFacade::class,
In a test route, I've tried to use it like this:
return \Larinfo::getInfo();
When I visit the test route; I am getting this error:
Class 'Larinfo' not found
When I tried to use it like this:
return Matriphe\Larinfo\Larinfo::getInfo();
I get this error:
Non-static method Matriphe\Larinfo\Larinfo::getInfo() should not be called statically
Any ideas why this might not be working? I've already tried running composer dump-auto
and it hasn't helped.
How do you use this package? What am I missing?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire