Closed undefinedzain closed 8 years ago
In your bootstrap/app.php
, make sure you've un-commented:
$app->withFacades();
Then, register you class alias with:
class_alias('Ixudra\Curl\Facades\Curl, 'Curl');
To register your ServiceProvider, check your bootstrap/app.php
:
/*
|--------------------------------------------------------------------------
| Register Service Providers
|--------------------------------------------------------------------------
|
| Here we will register all of the application's service providers which
| are used to bind services into the container. Service providers are
| totally optional, so you are not required to uncomment this line.
|
*/
// $app->register('App\Providers\AppServiceProvider');
// Add your service provider here
$app->register('Ixudra\Curl\Providers\CurlServiceProvider');
For future reference though: I got this answer in less than 2 minutes on Google.. Please try (and try extensively) to find the answer yourself before asking another question like this
Thank you, it works well :)
On 05/10/2016 7:09 pm, "Jan Oris" notifications@github.com wrote:
Closed #24 https://github.com/ixudra/curl/issues/24.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ixudra/curl/issues/24#event-813150058, or mute the thread https://github.com/notifications/unsubscribe-auth/AJ6qolycXOqJTceokOVEtzBDOBIaRVD4ks5qw5NsgaJpZM4KOlVB .
i use it on lumen 5.3 and class Curl always not found, please the solution, thank you.