How to Implement Records Import Feature in Filament | With Laravel Excel Package

Поделиться
HTML-код
  • Опубликовано: 16 янв 2025

Комментарии • 13

  • @hamzandev9482
    @hamzandev9482 5 месяцев назад

    Hi bro, what extension that you install for that glowing cursor effect?

  • @mounirammi
    @mounirammi 4 месяца назад

    Thank you for the video it's been very helpful.
    But got a question : how to deal with temporary files.
    my app users deals with importing a lot, so I figure out why not using a temp folder, and actually livewire and Laravel has one implemented with filament 3
    ->storeFiles(false) makes the file in a temp-livewire folder inside the storage folder, but when dd the $file it doesn't show the file path, instead it's showing the temp object instead and casting this error :
    "C:\xampp\htdocs\Project-test\public\storage/C:\Users\mounir\AppData\Local\Temp\phpDD52.tmp" // app\Filament\Resources\OperationResource.php:490

  • @tahinuralam29
    @tahinuralam29 9 месяцев назад

    That's very fantastic
    But how we can show the students records in the navigation bage that is under the current tenant

    • @TapanSharma.
      @TapanSharma.  9 месяцев назад

      I haven't worked with tenancy in Filament, I think it'll be similar to what we did here, there's probably some way to access the current tenant, and you can query the data accordingly for that tenant

  • @asr2021
    @asr2021 6 месяцев назад

    Is there any way to add a sample csv file which can be downloaded, filled and then used to import data?

    • @TapanSharma.
      @TapanSharma.  6 месяцев назад

      You can include a sample csv file, which the users can download, and they will fill that csv as per the format and then, they can import it accordingly
      On the custom action, you can add a button, which when clicked, will download that csv file.

    • @asr2021
      @asr2021 6 месяцев назад

      @@TapanSharma. Thanks

  • @majidshafik5088
    @majidshafik5088 5 месяцев назад

    thank you

  • @wkurniawaan
    @wkurniawaan 7 месяцев назад

    the temporary file is it automaticaly deleted or we must delete it manually and how to delete it if manually?

    • @TapanSharma.
      @TapanSharma.  7 месяцев назад

      You can delete those files using a scheduler, in case they don't get deleted automatically

  • @junzeldelatorre9168
    @junzeldelatorre9168 5 месяцев назад

    I followed your instruction sir. But im getting this error all the time SQLSTATE[HY000]: General error: 1364 Field 'name' doesn't have a default value. Both my equipment table and excel doesnt have a name column it may be because im trying to find the id of the FK using it's name on same query as what u did sir. can you help me

  • @ubica6
    @ubica6 3 месяца назад

    need cs code theme name and this tying neon