I am working on Upload excel sheet. I need to count records of the excel sheet before upload to use as condition. I am using this package. My code is like below.
public function import()
{
Excel::import(new UsersImport,request()->file('file'));
return back();
}
How can I count record before upload ?