I am Trying To Open A Xlsx File By Using Maatwebsite Excel But its showing error
"Call to undefined method Maatwebsite\Excel\Excel::load()"
This is my Code
$dir=storage_path('navs/');
$a = scandir($dir);
for($i=0;$i<count($a);$i++)
{
if($a[$i]!='.' && $a[$i]!='..')
{
$file = Excel::load('storage/navs/' . $a[$i])->first()->keys();
print_r($file);
}
}
Please Help me out