Hasith
Hasith
FFilament
Created by TheAbhishekIN on 4/15/2024 in #❓┊help
is there any filament feature or plugin available for mention users ?
Can you tell me exactly where to look to implement this? @krekas @TheAbhishekIN
8 replies
FFilament
Created by Hasith on 5/24/2024 in #❓┊help
Form Database Transactions
What is the best way to refactor this create method?
3 replies
FFilament
Created by DianaMujoiu on 4/11/2024 in #❓┊help
Spatie media library in livewire component
I only use Filament Forms
4 replies
FFilament
Created by DianaMujoiu on 4/11/2024 in #❓┊help
Spatie media library in livewire component
Can we use these plugins outside of the filament panel inside a Laravel component?
4 replies
FFilament
Created by Wim on 3/26/2024 in #❓┊help
Form validation messages
Plus my presets are not working fine as well. So i manually copy and paste colors from that file to my tailwind.config file. not sure why it's not working. Maybe some conflict with require("daisyui"). I'm using MaryUi as my Ui library.
18 replies
FFilament
Created by Wim on 3/26/2024 in #❓┊help
Form validation messages
Yeah. Solve the problem. I don't know the reason but browser validation messages only triggered when using ->required(). Using ->rules(['required']) fix my problem. I mention it here if anyone looks for it again. if you can mark this as the solution.
18 replies
FFilament
Created by Wim on 3/26/2024 in #❓┊help
Form validation messages
@Wim @rominronin
18 replies
FFilament
Created by Hasith on 5/23/2024 in #❓┊help
Form css not working
TextInput::make('title')->rules(['required']) use this method to avoid browser validation messages.....
4 replies
FFilament
Created by Wim on 3/26/2024 in #❓┊help
Form validation messages
TextInput::make('title')->rules(['required']) Use this instead of ->required().
18 replies
FFilament
Created by NeerGreeN on 12/28/2023 in #❓┊help
Validation messages
Thank God. This should be mentioned on the Doc. ✅
37 replies
FFilament
Created by Wim on 3/26/2024 in #❓┊help
Form validation messages
Is this some css problem ?
18 replies
FFilament
Created by Wim on 3/26/2024 in #❓┊help
Form validation messages
I have the same problem. I'm using filament form inside my Livewire component. Validation messages appear as browser validations. But i want to show them in red color below the input field like normal filament forms are showing in the panels.
18 replies
FFilament
Created by Hasith on 5/17/2024 in #❓┊help
Convert Repeater to a Multiple Select Field
Got that too. Thanks in advace 💌 @Tally
18 replies
FFilament
Created by Hasith on 5/17/2024 in #❓┊help
Convert Repeater to a Multiple Select Field
It's work fine bro. How can i show that details on Post table as badges? Can you help me with that too... This works for me
public function categories(): BelongsToMany
{
return $this->belongsToMany(Category::class, 'post_categories', 'post_id', 'category_id');
}
public function categories(): BelongsToMany
{
return $this->belongsToMany(Category::class, 'post_categories', 'post_id', 'category_id');
}
18 replies
FFilament
Created by Hasith on 5/17/2024 in #❓┊help
Convert Repeater to a Multiple Select Field
Let me try your solution fast
18 replies
FFilament
Created by Hasith on 5/17/2024 in #❓┊help
Convert Repeater to a Multiple Select Field
18 replies
FFilament
Created by Hasith on 5/17/2024 in #❓┊help
Convert Repeater to a Multiple Select Field
When creating a Post i want to let the user to select multiple categories using a select field.
18 replies
FFilament
Created by Hasith on 5/17/2024 in #❓┊help
Convert Repeater to a Multiple Select Field
Select::make('categories')
->label('Category')
->relationship('categories')
->multiple()
->searchable()->preload()->required(),
Select::make('categories')
->label('Category')
->relationship('categories')
->multiple()
->searchable()->preload()->required(),
This is my form input fiedl and it's give me an error saying SQLSTATE[42S22]: Column not found: 1054 Unknown column 'post_categories.' in 'field list'. This is my Model Configurations to my Pivot table using a pivot Model. @Tally In my Post Model
public function categories(): HasMany
{
return $this->hasMany(PostCategory::class, 'post_id');
}
public function categories(): HasMany
{
return $this->hasMany(PostCategory::class, 'post_id');
}
In my Pivot Table Model (PostCategory)
<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Relations\Pivot;

class PostCategory extends Pivot
{
use HasFactory;

protected $table = 'post_categories';

public $timestamps = false;

protected $fillable = ['post_id', 'category_id'];

public function post(): BelongsTo
{
return $this->belongsTo(Post::class);
}

public function category(): BelongsTo
{
return $this->belongsTo(Category::class);
}
}
<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Relations\Pivot;

class PostCategory extends Pivot
{
use HasFactory;

protected $table = 'post_categories';

public $timestamps = false;

protected $fillable = ['post_id', 'category_id'];

public function post(): BelongsTo
{
return $this->belongsTo(Post::class);
}

public function category(): BelongsTo
{
return $this->belongsTo(Category::class);
}
}
18 replies
FFilament
Created by _qRtrenH&5367 on 4/13/2024 in #❓┊help
Spatie Tags always creates new tag in form
SpatieTagsInput::make('tags')->type('post')
->suggestions(
Tag::getWithType('post')->pluck('name')->toArray()
)->required(),
SpatieTagsInput::make('tags')->type('post')
->suggestions(
Tag::getWithType('post')->pluck('name')->toArray()
)->required(),
This is not working for me...
11 replies
FFilament
Created by _qRtrenH&5367 on 4/13/2024 in #❓┊help
Spatie Tags always creates new tag in form
I'm also looking for display suggestions when user Typing.
11 replies