Laravel 5 broken
Closed this issue · 3 comments
renege commented
`
Whoops, looks like something went wrong.
1/1
FatalErrorException in PhotosController.php line 40:
Class 'App\Http\Controllers\Uuid' not found``
added it to aliasses...
webpatser commented
I'll check why the Facade is not working. Adding the correct namespace to the controller should work too..
webpatser commented
Also from the larval 5 docs:
Importing Facades
Remember, if you are using a facade in a controller that is namespaced, you will need to import the facade class into the namespace. All facades live in the global namespace:
webpatser commented
To clarify:
when the alias is in the config you can use the namespace
use Uuid;
if the alias is missing you can reference the complete path
use Webpatser\Uuid\Uuid