for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Created by PhpStorm.
* User: Alessandro
* Date: 02/12/2015
* Time: 13:12
*/
namespace Padosoft\LaravelComposerSecurity;
use \Illuminate\Foundation;
use \Illuminate\Support\Facades\File;
class FileHelper
{
* @param $path
* @param $fileName
* @return array
public function findFiles($path, $fileName)
if ($path=='') {
$path = base_path();
}
if (File::isDirectory($path)) {
$path=str_finish($path, '/');
$path .= $fileName;
return File::glob($path);