Any additional information, configuration or data that might be necessary to reproduce the issue.
While try to import excel with multiple sheet I'm getting this error
Class 'App\Imports\FirstSheetImport' not found
Hi, could you send you code of the import class ?
Hi, could you send you code of the import class ?
And fill in the version information as requested in the issue template :)
@GlennM @Skyous Im also having issues regarding this, but having the same error with "Class 'App\Imports\FourthSheetImport' not found"
Here is my code in the app/imports/incidentimport.php
```
namespace App\Imports;
use App\Incident;
use Maatwebsite\Excel\Concerns\ToModel;
use Carbon\Carbon;
use Illuminate\Support\Str;
use Maatwebsite\Excel\Concerns\WithMultipleSheets;
// use Maatwebsite\Excel\Concerns\SkipsUnknownSheets;
class IncidentImport implements ToModel, withMultipleSheets
{
/**
* @param array $row
*
* @return \Illuminate\Database\Eloquent\Model|null
*/
// use WithConditionalSheets;
protected $tempId;
public function sheets(): array
{
return [
'Import Values' => new FourthSheetImport(),
];
}
public function __construct($tempId)
{
$this->tempId = $tempId;
// echo($tempId);
}
public function model(array $row)
{
$incident = new \App\Tempincident;
@mwhitney9 Just to make sure, did you create the FourthSheetImport class? If so, could you share your code of that class please?
@mwhitney9 Hi, as @GlennM says, make sure you have created the fourthSheetImport and remember this class can import the same concerns as a normal import object. Check this link i think this can help you. https://docs.laravel-excel.com/3.1/imports/multiple-sheets.html
In case that you did, please share your code.
I would recommend reaching out on Stackoverflow or Laracasts, this error is unrelated to the package.
Forgot to respond. Thank you @GlennM and @Skyous. I had to create the fourth sheet import class and it worked
Glad to hear! :)