ixudra / curl

Custom PHP curl library for the Laravel 5 framework - developed by Ixudra
MIT License
561 stars 128 forks source link

Lumen 5.3 integration #24

Closed undefinedzain closed 8 years ago

undefinedzain commented 8 years ago

i use it on lumen 5.3 and class Curl always not found, please the solution, thank you.

elimentz commented 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

undefinedzain commented 8 years ago

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 .