๋ผ๋ผ๋ฒจ- ์์ :2.1.7 / ๋ผ๋ผ๋ฒจ: 5.3.24
Import Handlers ์๋์ ๋ฌธ์ ์์ handle()
ํจ์๋ Importer ํด๋์ค์ ์ธ์คํด์ค๋ฅผ ํ์ฉ/์ฃผ์
ํ์ง๋ง ๋งค๊ฐ๋ณ์๊ฐ ํ์
ํํ
ํ ์ ์๊ธฐ ๋๋ฌธ์ ๊ทธ๋ ๊ฒ ์๋ํ๊ณ ์ ์ํ๋ฉด ์ฌ๋ฐ๋ฅด์ง ์๋ค๊ณ ๋ช
์๋์ด ์์ต๋๋ค.
Declaration of App\ExcelImporters\ContactsImporterHandler::handle() must be compatible with Maatwebsite\Excel\Files\ImportHandler::handle($file)
use Maatwebsite\Excel\Files\ImportHandler;
use App\ExcelImporters\ContactsImporter;
class ContactsImporterHandler implements ImportHandler
{
public function handle(ContactsImporter $import)
{
...
}
์ด๊ฒ์ ๋ฌธ์์ ์ค์์ ๋๊น ์๋๋ฉด ์ ๊ฐ ์๋ชปํ ๊ฒ์ ๋๊น?
์ ๋ ์ด๊ฑธ ์ด์ ์์ผ ๋ดค๋๋ฐ ์ 1์ ์ดํ๋ก ์์ฑ์๊ฐ ์ด ๋ฌธ์ ์ ๋ํด ๋ต๋ณ์ ํ์ง ์์๋์ง ๊ถ๊ธํฉ๋๋ค. ๋ค๋ฅธ '์ค์ํ ๋ฌธ์ '๋ก ๋ฐ์์ ๊ฒ ๊ฐ์์.
@stevepop ํ๋ฅญํ ํจํค์ง ์๋๊น ์ถ์ธกํฉ๋๋ค.
9๊ฐ์์ด ์ง๋ฌ์ง๋ง ์ ์๋ ๋๋ตํ์ง ์์๋ค.
๊ฐ์ฅ ์ ์ฉํ ๋๊ธ
@stevepop ํ๋ฅญํ ํจํค์ง ์๋๊น ์ถ์ธกํฉ๋๋ค.