You have to autoload from your composer.json
{
"autoload": {
"files": ["restclient.php"]
}
}
Thanks RemiCollin but it didn't work. I have some error
[Seld\JsonLint\ParsingException]
"./composer.json" does not contain valid JSON
Parse error on line 10:
... "classmap": [ //"files": ["restcli
--------------------^
Expected one of: 'STRING', 'NUMBER', 'NULL', 'TRUE', 'FALSE', '{', '[', ']'
{ "name": "laravel/laravel", "description": "The Laravel Framework.", "keywords": ["framework", "laravel"], "license": "MIT", "require": { "laravel/framework": "4.2.*" }, "autoload": { "classmap": [ "files": ["restclient.php"], "app/commands", "app/controllers", "app/models", "app/database/migrations", "app/database/seeds", "app/tests/TestCase.php"
]
},
"scripts": {
"post-install-cmd": [
"php artisan clear-compiled",
"php artisan optimize"
],
"post-update-cmd": [
"php artisan clear-compiled",
"php artisan optimize"
],
"post-create-project-cmd": [
"php artisan key:generate"
]
},
"config": {
"preferred-install": "dist"
},
"minimum-stability": "stable"
}
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community