dansing
How to render icon in blade template using existing filament way?
Here I'm rendering a Star icon from heroicons
@for ($i = 1; $i <= 5; $i++)
<div
@mouseover="hoverRating = {{ $i }}; rating = -1;"
@mouseout="hoverRating = -1; rating = state"
@click="state = {{ $i }}"
>
<svg xmlns="http://www.w3.org/2000/svg" x-bind:fill="(hoverRating !== -1 && {{ $i }} <= hoverRating) || ({{ $i }} <= rating) ? 'yellow' : 'white'" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-6 h-6">
<path stroke-linecap="round" stroke-linejoin="round" d="M11.48 3.499a.562.562 0 011.04 0l2.125 5.111a.563.563 0 00.475.345l5.518.442c.499.04.701.663.321.988l-4.204 3.602a.563.563 0 00-.182.557l1.285 5.385a.562.562 0 01-.84.61l-4.725-2.885a.563.563 0 00-.586 0L6.982 20.54a.562.562 0 01-.84-.61l1.285-5.386a.562.562 0 00-.182-.557l-4.204-3.602a.563.563 0 01.321-.988l5.518-.442a.563.563 0 00.475-.345L11.48 3.5z" />
</svg>
</div>
@endfor
2 replies
How to properly integrate middleware without ending up in a "TOO MANY REDIRECTS" issue
I'm validating the user->is_profile_complete column, then force redirect user to "Complete profile wizard" page, but ending up on too many redirects error
10 replies
Upgrading from v2 to v3
Experiencing issues with composer update
Problem 1
- filament/filament 3.x-dev requires filament/support 3.x-dev -> satisfiable by filament/support[3.x-dev].
- filament/filament v3.0.0 requires filament/support v3.0.0 -> satisfiable by filament/support[v3.0.0].
- filament/filament v3.0.1 requires filament/support v3.0.1 -> satisfiable by filament/support[v3.0.1].
- filament/filament v3.0.2 requires filament/support v3.0.2 -> satisfiable by filament/support[v3.0.2].
- filament/support[v3.0.0, ..., 3.x-dev] require livewire/livewire ^3.0 -> found livewire/livewire[v3.0.0-beta.1, ..., v3.0.0-beta.5] but it conflicts with your root composer.json require (^2.12).
- Root composer.json requires filament/filament ^3.0-stable -> satisfiable by filament/filament[v3.0.0, v3.0.1, v3.0.2, 3.x-dev].
Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
10 replies
Associate BelongsTo relationship
Hello, I'm new to using Filament. Can I ask if this is an acceptable approach when saving records with a relationship based on authenticated user data?
resource: https://gist.github.com/dansingian/d1705d6bb133ffd9fca4aaed7828b5bb
create: https://gist.github.com/dansingian/6a05722006d72d1ed2fed80c4890b063
9 replies