V
V
Vit2015-06-01 13:03:53
Composer
Vit, 2015-06-01 13:03:53

How to use module loaded by composer in Laravel5?

Downloaded the module https://packagist.org/packages/shuber/curl using composer. I'm trying to use it. What I do:
$curl = new \Curl();
I get an error:

FatalErrorException in File.php line 14: Class 'Curl' not found

The same thing worked in Laravel 4.2, switched to Laravel 5 - I get an error.
How to fix?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
D', 2015-06-01
@Denormalization

autoload generated?
Try doing:
or
composer dumpautoload -o

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question