i created a function php using scandir in php it working 100% , then i created a controller in laravel and i copy the function in him the system display an error "scandir (