dasundev / livewire-dropzone

A Livewire Dropzone component for simple drag-and-drop file uploads.
https://dasun.dev/docs/livewire-dropzone
MIT License
169 stars 17 forks source link

Class "Number" not found #29

Closed tominal closed 6 months ago

tominal commented 7 months ago

Hey there,

Nice repo! I gave it a try and hit a snag similar to #17 :

2024-04-24_00-17

Not sure what Number helper class is used here but it's probably an easy fix by adding its namespace in there.

dasundev commented 7 months ago

Did this happen when you published the dropzone view?

dasundev commented 7 months ago

Can you make a PR with the namespace?

tominal commented 7 months ago

Nope, just following the docs when installing it in a Livewire 3 project. Would you happen to remember what Number facade you used here? I don't see anything in the composer.json so that I can locate any namespace. -T

dasundev commented 7 months ago

Use this:


Illuminate\Support\Number::fileSize()
tominal commented 6 months ago

Got it! I created #30 and also found a second one of those in the same file. Should fix it!