Nick Ruddra
Nick Ruddra
FFilament
Created by Nick Ruddra on 7/4/2024 in #❓┊help
Why Filament Custom theme generating path like this in tw config 'is it bug or im doing it wrong'
tailwind.config.js
import preset from '../../../../vendor/filament/filament/tailwind.config.preset'

export default {
presets: [preset],
content: [
'./app/Filament/F:\1_Dev_G\php_laravel\laravel-livewire\laravel-livewire-ecom\app\Filament\Shop\Clusters\Settings\**/*.php',
'./resources/views/filament/f:\1_-dev_-g\php_laravel\laravel-livewire\laravel-livewire-ecom\app\-filament\-shop\-clusters\-settings\**/*.blade.php',
'./vendor/filament/**/*.blade.php',
],
}
import preset from '../../../../vendor/filament/filament/tailwind.config.preset'

export default {
presets: [preset],
content: [
'./app/Filament/F:\1_Dev_G\php_laravel\laravel-livewire\laravel-livewire-ecom\app\Filament\Shop\Clusters\Settings\**/*.php',
'./resources/views/filament/f:\1_-dev_-g\php_laravel\laravel-livewire\laravel-livewire-ecom\app\-filament\-shop\-clusters\-settings\**/*.blade.php',
'./vendor/filament/**/*.blade.php',
],
}
I generated this using php artisan make:filament-theme for shop panel I can manually configure it but it is weird !!
8 replies
FFilament
Created by Nick Ruddra on 7/3/2024 in #❓┊help
Hi I want to change my panel appearance based on currently active tenant! But I'm facing a problem!
public function panel(Panel $panel): Panel { $appearance = Appearance::whereBelongsTo(Filament::getTenant()); return $panel ->id('shop') ->path('shop') ->login() ->colors([ 'danger' => Color::Rose, 'gray' => Color::Slate, 'info' => Color::Blue, 'primary' => Color::Teal, 'success' => Color::Emerald, 'warning' => Color::Orange, ]) its showing this error Call to a member function newCollection() on null In this step I think filament didn't know what is my current tenant maybe panel isn't initialized yet!! so are there any way to set appearance for my tenant panel ?
5 replies
FFilament
Created by Nick Ruddra on 6/29/2024 in #❓┊help
i'm using chart widget with Trend Is it possible to configure it For multi tenant ?
I want to show how many employee is join in my company in a chart! but if i do it normal way It show all the employee I want to show only company related employee number! There is no querybuilder in Trand so I cant use whereBelongsTo(getTenant)
3 replies
FFilament
Created by Nick Ruddra on 6/29/2024 in #❓┊help
Can I add action to Table Group ?
No description
8 replies
FFilament
Created by Nick Ruddra on 6/24/2024 in #❓┊help
In multi tenant how can I remove functionality that user can't create team!!
Hello! In my app user can have multiple shop so Im using tenant system! But I want user to request for creating new shop ! and admin will create shop for them! that is why I need create shop/team function disable from user!! can any one help me with this! I already have verification system so that selected user can access shop panel shop panel have tenant system I want to have control in there to so that user cant create so many shop!
3 replies
FFilament
Created by Nick Ruddra on 6/23/2024 in #❓┊help
Can I add verification system In multi tenant!
In my seautiatuon I give user to access tenant panel! That user can create multiple company/group But after creating a company user need admin approval to show that company In panel Or make a request to admin admin can manually create company/group for user Are there a way to do this kind of thing?
3 replies
FFilament
Created by Nick Ruddra on 6/23/2024 in #❓┊help
Can Anyone help me with policy ?
I have some models inside folder also i created policy incide same named folder so that my folder structure looks good but policy isn't working example example models App\Models\Shop\Example.php Policies App\Policies\Shop\ExamplePolicy.php if i create policy like this policy didn't work in resource but it works in App\Models\Shop\Example.php Policies App\Policies\ExamplePolicy.php also works in this App\Models\Example.php Policies App\Policies\ExamplePolicy.php btw my resource also in filament/resources/shop/ In general if i put my policy in folder it didn't work yes i check namespace and other thing it is correct so how can i connect resource with policy in this situation
7 replies
FFilament
Created by Nick Ruddra on 6/19/2024 in #❓┊help
I need help Getting and Setting data from live form field!
I want to know are there any function that can help me getting all live form field state ! in my resource form I need to calculate few things depending on some fields value so it will be great If it have a function when anything changes in live field that function get called and then with those data I can calculate and set other form field! yes I tried afterStateUpdated but it is for individual field !!
2 replies
FFilament
Created by Nick Ruddra on 6/18/2024 in #❓┊help
In Table QueryBuilder how to disable confirm modal!
No description
2 replies
FFilament
Created by Nick Ruddra on 6/15/2024 in #❓┊help
product->variants->attributes how to create fields for this
So what's the best way to handle this kind of seautiatuon.... Relation: product has many varieties variants has many attributes When creating product I want to create variant and thair attributes I have no idea how to achieve this when creating product.... I can create variants in product edit page using relation manager but after that how can i add attributes in those variants!
5 replies
FFilament
Created by Nick Ruddra on 6/14/2024 in #❓┊help
Can Anyone help me with Select Tree plugin!!
Hello I'm new here and first time I'm creating help post so please forgive me if i made any mistake So my problem Is when I trying to create categories it shows Unknown column 'categories' in 'field list'
so when I do it manually usually i create product first then attach category in there! here is my code Schema::create('category_product', function (Blueprint $table) { $table->foreignId('product_id')->constrained('products')->cascadeOnDelete(); $table->foreignId('category_id')->constrained('categories')->cascadeOnDelete(); }); public function categories() { return $this->belongsToMany(Category::class, 'category_product'); } Section::make('meta')->schema([ FileUpload::make('thumbnail')->disk('products'), SelectTree::make('categories') ->relationship('categories', 'name', 'parent_id'), Checkbox::make('is_active'), ])->columnSpan(1),
6 replies