Arzu
Arzu
FFilament
Created by Arzu on 11/9/2024 in #❓┊help
notifications are not added to the notification modal
No description
5 replies
FFilament
Created by Arzu on 7/11/2024 in #❓┊help
Vite not loading on server?
i think i did something wrong but i cant figure it out. after finishing my project locally, i made npm run build. then after that i moved all the files to my linux server. i changed the app env to production, updated the app url to my url. now when im trying to enter the panel i made: GET http://[::1]:5173/resources/css/filament/panel/theme.css net::ERR_CONNECTION_REFUSED panel:73 GET http://[::1]:5173/@vite/client net::ERR_CONNECTION_REFUSED those are the errors i getting, what can be the issue?
6 replies
FFilament
Created by Arzu on 12/13/2023 in #❓┊help
dynamically add fields based on an array
i have a file input, that proccess a csv file. after the process it outputs an array. i want filament to print for each row in the array a set of fields in the same form. example for the final form after the process : [ ['John Doe', 30, 'Developer', '1991-01-01'], ['Jane Doe', 25, 'Designer', '1996-02-02'], ['Alice', 35, 'Manager', '1986-03-03'], ['Bob', 40, 'CEO', '1981-04-04'], ['Charlie', 45, 'CTO', '1976-05-05'], ]; now i want each one to have a set of fields that will look like this <form method="POST" action="/path/to/your/route"> @csrf @foreach($users as $index => $user) <div> <label for="name_{{ $index }}">Name</label> <input type="text" id="name_{{ $index }}" name="users[{{ $index }}][name]" value="{{ $user[0] }}"> </div> <div> <label for="age_{{ $index }}">Age</label> <input type="number" id="age_{{ $index }}" name="users[{{ $index }}][age]" value="{{ $user[1] }}"> </div> <div> <label for="position_{{ $index }}">Position</label> <input type="text" id="position_{{ $index }}" name="users[{{ $index }}][position]" value="{{ $user[2] }}"> </div> <div> <label for="dob_{{ $index }}">Date of Birth</label> <input type="date" id="dob_{{ $index }}" name="users[{{ $index }}][dob]" value="{{ $user[3] }}"> </div> @endforeach <button type="submit">Submit</button> </form> ignore the inconsistencies, this was just an example i wrote. how to i dup the form inputs based on the array?
3 replies
FFilament
Created by Arzu on 12/10/2023 in #❓┊help
Manipulating CSV inside the form, or function in form
I need help or an idea for a functionality im trying to make. i am trying to make a form that uploads a specific csv file, that file content needs to be manipulated before going in the database. for example: i have a file with 7 lines, i need 3 of them to be combined to a single line and the other 4 to be as is. what im trying to do is to upload the csv, and after the file upload input i want the csv to be processed and then based on the content show different fields to the user to appoint each "new row" as needed. any idea how to do the csv proccess in the middle of the form?
8 replies