Watoka
Watoka
FFilament
Created by Watoka on 12/8/2023 in #❓┊help
Spatie tags filter
I think I will submit a bug report
38 replies
FFilament
Created by Watoka on 12/8/2023 in #❓┊help
Spatie tags filter
Of course I could make an extra query, but this was working fine in v2
38 replies
FFilament
Created by Watoka on 12/8/2023 in #❓┊help
Spatie tags filter
If I set an indicator, I don't have access to the $record, I get only the $data array which returns the id of the tag
38 replies
FFilament
Created by Watoka on 12/8/2023 in #❓┊help
Spatie tags filter
I don't have an indicator set up. THis is my code:
SelectFilter::make('tags')
->label('Tags')
->getOptionLabelFromRecordUsing(fn($record) => $record['name'] )
->multiple()
->preload()
->forceSearchCaseInsensitive()
->relationship('tags', 'name'),
SelectFilter::make('tags')
->label('Tags')
->getOptionLabelFromRecordUsing(fn($record) => $record['name'] )
->multiple()
->preload()
->forceSearchCaseInsensitive()
->relationship('tags', 'name'),
38 replies
FFilament
Created by Watoka on 12/8/2023 in #❓┊help
Spatie tags filter
No description
38 replies
FFilament
Created by Watoka on 12/8/2023 in #❓┊help
Spatie tags filter
THanks, this is working. Kinda. The filter indicator is still broken.
38 replies
FFilament
Created by Tiago Moises on 12/10/2023 in #❓┊help
filament not login inactive user?
I use this:
namespace App\Http\Middleware;

use Closure;
use Illuminate\Http\Request;

class EnsureUserIsActive
{

public function handle(Request $request, Closure $next)
{
if (!$request->user()->isActive()) {
\Session::flush();
abort(403, 'Your account is inactive.');
} else {
return $next($request);
}
}
}
namespace App\Http\Middleware;

use Closure;
use Illuminate\Http\Request;

class EnsureUserIsActive
{

public function handle(Request $request, Closure $next)
{
if (!$request->user()->isActive()) {
\Session::flush();
abort(403, 'Your account is inactive.');
} else {
return $next($request);
}
}
}
And in the panel provider:
->authMiddleware([
Authenticate::class,
EnsureUserIsActive::class,
])
->authMiddleware([
Authenticate::class,
EnsureUserIsActive::class,
])
12 replies
FFilament
Created by Watoka on 12/8/2023 in #❓┊help
Spatie tags filter
No description
38 replies
FFilament
Created by Watoka on 12/8/2023 in #❓┊help
Spatie tags filter
Yes, the filtering is performed correctly, but the indicator is wrong
38 replies
FFilament
Created by Watoka on 12/8/2023 in #❓┊help
Spatie tags filter
This used to work in v2
38 replies
FFilament
Created by Watoka on 12/8/2023 in #❓┊help
Spatie tags filter
SelectFilter::make('tags')
->label('Tags')
->multiple()
->preload()
->forceSearchCaseInsensitive()
->relationship('tags', 'name'),
SelectFilter::make('tags')
->label('Tags')
->multiple()
->preload()
->forceSearchCaseInsensitive()
->relationship('tags', 'name'),
38 replies
FFilament
Created by Watoka on 12/8/2023 in #❓┊help
Spatie tags filter
No, just SelectFilter
38 replies
FFilament
Created by Watoka on 12/8/2023 in #❓┊help
Spatie tags filter
Works OK in the form, the problem is only in filters
38 replies
FFilament
Created by Watoka on 12/8/2023 in #❓┊help
Spatie tags filter
And I don't have a tags() relationship, this should be handled automatically by the Spatie Tags plugin
38 replies
FFilament
Created by Watoka on 12/8/2023 in #❓┊help
Spatie tags filter
No description
38 replies
FFilament
Created by Watoka on 12/8/2023 in #❓┊help
Spatie tags filter
I just have a Contacts model:
class Contact extends Model
{
use HasFactory, HasTags
class Contact extends Model
{
use HasFactory, HasTags
38 replies
FFilament
Created by Watoka on 12/8/2023 in #❓┊help
Spatie tags filter
Delete it from where? I did not overwrite getTagClassName
38 replies
FFilament
Created by Watoka on 12/8/2023 in #❓┊help
Spatie tags filter
Not yet 😢
38 replies
FFilament
Created by Watoka on 12/6/2023 in #❓┊help
tag
Sorry, I think i messed up something while creating this post
3 replies
FFilament
Created by Sanchit Patil on 9/14/2023 in #❓┊help
viteTheme not working on Production
Add to your deploy script:
npm ci
npm run build
npm ci
npm run build
10 replies