waleedGRT
waleedGRT
FFilament
Created by Javier Mercedes on 10/6/2023 in #❓┊help
Trigger Action automatically when page loads
Perhaps this code could be helpful for someone.
->extraAttributes(function () {
$config += [
'wire:init' => new HtmlString('mountAction(\'modelname\')'),
]
return $config;
})
->extraAttributes(function () {
$config += [
'wire:init' => new HtmlString('mountAction(\'modelname\')'),
]
return $config;
})
7 replies
FFilament
Created by waleedGRT on 12/25/2023 in #❓┊help
Call action method from livewire
Certainly, you're correct. I've adhered to the instructions outlined in the documentation, but I'm interested in automatically triggering the actions function and displaying the model on the screen when the page loads. Is there a way to achieve this?
5 replies
FFilament
Created by waleedGRT on 12/25/2023 in #❓┊help
Call action method from livewire
fi
5 replies
FFilament
Created by waleedGRT on 12/2/2023 in #❓┊help
Is it possible configure repeater client base?
fi
4 replies
FFilament
Created by waleedGRT on 11/20/2023 in #❓┊help
TailwindCSS safelist is not working.
After days of debugging, I realized that I've been editing the wrong tailwind.config.js file. The correct file that needs to be edited is located at resources\css\filament\admin\tailwind.config.js.
16 replies
FFilament
Created by waleedGRT on 11/20/2023 in #❓┊help
TailwindCSS safelist is not working.
I tried but same result 😭
16 replies
FFilament
Created by waleedGRT on 11/20/2023 in #❓┊help
TailwindCSS safelist is not working.
PanelProvider
<?php

namespace App\Providers\Filament;

...

class AdminPanelProvider extends PanelProvider
{
public function panel(Panel $panel): Panel
{
return $panel
->default()
->id('admin')
->path('admin')
->login(Login::class)
->registration(Register::class)
->passwordReset()
->emailVerification()
->profile()
->sidebarFullyCollapsibleOnDesktop()
->databaseNotifications()
->databaseNotificationsPolling('30s')
->colors([
'primary' => Color::Amber,
])
->discoverResources(in: app_path('Filament/Resources'), for: 'App\\Filament\\Resources')
->discoverPages(in: app_path('Filament/Pages'), for: 'App\\Filament\\Pages')
->pages([
Pages\Dashboard::class,
])
->discoverWidgets(in: app_path('Filament/Widgets'), for: 'App\\Filament\\Widgets')
->widgets([
Widgets\AccountWidget::class,
Widgets\FilamentInfoWidget::class,
])
->middleware([
...
])
->authMiddleware([
Authenticate::class,
])
->viteTheme('resources/css/filament/admin/theme.css')
->plugins([
...
]);
}
}
<?php

namespace App\Providers\Filament;

...

class AdminPanelProvider extends PanelProvider
{
public function panel(Panel $panel): Panel
{
return $panel
->default()
->id('admin')
->path('admin')
->login(Login::class)
->registration(Register::class)
->passwordReset()
->emailVerification()
->profile()
->sidebarFullyCollapsibleOnDesktop()
->databaseNotifications()
->databaseNotificationsPolling('30s')
->colors([
'primary' => Color::Amber,
])
->discoverResources(in: app_path('Filament/Resources'), for: 'App\\Filament\\Resources')
->discoverPages(in: app_path('Filament/Pages'), for: 'App\\Filament\\Pages')
->pages([
Pages\Dashboard::class,
])
->discoverWidgets(in: app_path('Filament/Widgets'), for: 'App\\Filament\\Widgets')
->widgets([
Widgets\AccountWidget::class,
Widgets\FilamentInfoWidget::class,
])
->middleware([
...
])
->authMiddleware([
Authenticate::class,
])
->viteTheme('resources/css/filament/admin/theme.css')
->plugins([
...
]);
}
}
16 replies
FFilament
Created by waleedGRT on 11/20/2023 in #❓┊help
TailwindCSS safelist is not working.
File
<?php

namespace App\Livewire;
...
class OrderSection extends Component implements HasForms
{
...
public function form(Form $form): Form
{
return $form
->schema([
Grid::make()
->schema([
...
Repeater::make('nuc')
->extraAttributes(['class' => 'h-[60vh] overflow-auto'])
->relationship()
->schema([
...
])->columnSpan(2)
->reorderableWithButtons()
->collapsible()
])
])
->model(Order::class)
->statePath('data');
}
...
}
<?php

namespace App\Livewire;
...
class OrderSection extends Component implements HasForms
{
...
public function form(Form $form): Form
{
return $form
->schema([
Grid::make()
->schema([
...
Repeater::make('nuc')
->extraAttributes(['class' => 'h-[60vh] overflow-auto'])
->relationship()
->schema([
...
])->columnSpan(2)
->reorderableWithButtons()
->collapsible()
])
])
->model(Order::class)
->statePath('data');
}
...
}
16 replies
FFilament
Created by waleedGRT on 11/20/2023 in #❓┊help
TailwindCSS safelist is not working.
import { defineConfig } from "vite"; import laravel, { refreshPaths } from "laravel-vite-plugin"; export default defineConfig({ plugins: [ laravel({ input: ["resources/css/app.css", "resources/js/app.js" , "resources/css/filament/admin/theme.css"], refresh: [ ...refreshPaths, "app/Filament/**", "app/Forms/Components/**", "app/Livewire/**", "app/Infolists/Components/**", "app/Providers/Filament/**", "app/Tables/Columns/**", ], }), ], });
16 replies
FFilament
Created by waleedGRT on 11/20/2023 in #❓┊help
TailwindCSS safelist is not working.
I believe I haven't misconfigured anything; here is the content of my vite.config.js file.
16 replies
FFilament
Created by waleedGRT on 11/20/2023 in #❓┊help
TailwindCSS safelist is not working.
Yes, i did.
16 replies
FFilament
Created by waleedGRT on 11/20/2023 in #❓┊help
TailwindCSS safelist is not working.
I verified that arbitrary values function properly in the safelist, as discussed in this GitHub thread: https://github.com/tailwindlabs/tailwindcss/discussions/7908
16 replies
FFilament
Created by waleedGRT on 11/20/2023 in #❓┊help
TailwindCSS safelist is not working.
I attempted it multiple times—first with ‘npm run dev’ but no results were observed. After stopping the dev, I executed ‘npm run build’ yet the outcome remained unchanged.
16 replies
FFilament
Created by waleedGRT on 10/24/2023 in #❓┊help
Tabs Blade component content
Okay, its working
11 replies
FFilament
Created by waleedGRT on 10/24/2023 in #❓┊help
Tabs Blade component content
It's weird that the tab component doesn't have a content parameter, but I'll try to fix that with x-show.
11 replies
FFilament
Created by Ilham Dimas Prayudha on 10/24/2023 in #❓┊help
Table with Custom Array/Collection Data
5 replies
FFilament
Created by waleedGRT on 10/24/2023 in #❓┊help
Tabs Blade component content
Empty 😢
11 replies
FFilament
Created by waleedGRT on 10/24/2023 in #❓┊help
Tabs Blade component content
No description
11 replies
FFilament
Created by waleedGRT on 10/13/2023 in #❓┊help
Validation Error Display Issue in Ban Middleware Implementation
Using this strategy in the user model, I was able to resolve the problem.
public function canAccessPanel(Panel $panel): bool
{
if ($panel->getId() === 'admin') {
return $this->is_admin && $this->status;
}
return true;
}
public function canAccessPanel(Panel $panel): bool
{
if ($panel->getId() === 'admin') {
return $this->is_admin && $this->status;
}
return true;
}
4 replies
FFilament
Created by waleedGRT on 10/13/2023 in #❓┊help
Validation Error Display Issue in Ban Middleware Implementation
🧐
4 replies