Jpac14
Jpac14
Explore posts from servers
FFilament
Created by Jpac14 on 2/4/2025 in #❓┊help
Using primary tailwind colours in blade view and render hook
bump 👍
16 replies
FFilament
Created by Jpac14 on 2/4/2025 in #❓┊help
Using primary tailwind colours in blade view and render hook
any help appreciated, i know it's probaly a silly issue
16 replies
FFilament
Created by Jpac14 on 2/4/2025 in #❓┊help
Using primary tailwind colours in blade view and render hook
No description
16 replies
FFilament
Created by Jpac14 on 2/4/2025 in #❓┊help
Using primary tailwind colours in blade view and render hook
should look something like this
16 replies
FFilament
Created by Jpac14 on 2/4/2025 in #❓┊help
Using primary tailwind colours in blade view and render hook
non of those text-primary-700 etc are not getting applied
16 replies
FFilament
Created by Jpac14 on 2/4/2025 in #❓┊help
Using primary tailwind colours in blade view and render hook
No description
16 replies
FFilament
Created by Jpac14 on 2/4/2025 in #❓┊help
Using primary tailwind colours in blade view and render hook
No description
16 replies
FFilament
Created by Jpac14 on 2/4/2025 in #❓┊help
Using primary tailwind colours in blade view and render hook
<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<meta charset="utf-8">

<meta name="application-name" content="{{ config('app.name') }}">
<meta name="csrf-token" content="{{ csrf_token() }}">
<meta name="viewport" content="width=device-width, initial-scale=1">

<title>{{ config('app.name') }}</title>

<style>
[x-cloak] {
display: none !important;
}
</style>

@filamentStyles
@vite('resources/css/app.css')
</head>

<body class="antialiased">
{{ $slot }}

@filamentScripts
@vite('resources/js/app.js')
</body>
</html>
<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<meta charset="utf-8">

<meta name="application-name" content="{{ config('app.name') }}">
<meta name="csrf-token" content="{{ csrf_token() }}">
<meta name="viewport" content="width=device-width, initial-scale=1">

<title>{{ config('app.name') }}</title>

<style>
[x-cloak] {
display: none !important;
}
</style>

@filamentStyles
@vite('resources/css/app.css')
</head>

<body class="antialiased">
{{ $slot }}

@filamentScripts
@vite('resources/js/app.js')
</body>
</html>
16 replies
FFilament
Created by Jpac14 on 2/4/2025 in #❓┊help
Using primary tailwind colours in blade view and render hook
import preset from './vendor/filament/support/tailwind.config.preset'

export default {
presets: [preset],
content: [
'./app/Filament/**/*.php',
'./vendor/filament/**/*.blade.php',
'./resources/views/**/*.blade.php',
'./resources/views/*.blade.php',
'./vendor/codewithdennis/filament-simple-alert/resources/**/*.blade.php'
],
}
import preset from './vendor/filament/support/tailwind.config.preset'

export default {
presets: [preset],
content: [
'./app/Filament/**/*.php',
'./vendor/filament/**/*.blade.php',
'./resources/views/**/*.blade.php',
'./resources/views/*.blade.php',
'./vendor/codewithdennis/filament-simple-alert/resources/**/*.blade.php'
],
}
16 replies
FFilament
Created by Jpac14 on 2/4/2025 in #❓┊help
Using primary tailwind colours in blade view and render hook
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'],
refresh: [
...refreshPaths,
'app/Livewire/**',
],
}),
],
})
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'],
refresh: [
...refreshPaths,
'app/Livewire/**',
],
}),
],
})
16 replies
FFilament
Created by Jpac14 on 2/4/2025 in #❓┊help
Using primary tailwind colours in blade view and render hook
@tailwind base;
@tailwind components;
@tailwind utilities;
@tailwind variants;

@layer components {
.slider::-webkit-slider-thumb, .slider::-moz-range-thumb {
@apply appearance-none h-3.5 w-3.5 rounded-full bg-white border-2 border-black cursor-pointer;
}
}
@tailwind base;
@tailwind components;
@tailwind utilities;
@tailwind variants;

@layer components {
.slider::-webkit-slider-thumb, .slider::-moz-range-thumb {
@apply appearance-none h-3.5 w-3.5 rounded-full bg-white border-2 border-black cursor-pointer;
}
}
16 replies
FFilament
Created by Jpac14 on 2/4/2025 in #❓┊help
Using primary tailwind colours in blade view and render hook
class AdminPanelProvider extends PanelProvider
{
public function panel(Panel $panel): Panel
{
return $panel
->id('admin')
->path('admin')
->login()
->brandLogo(asset('images/logo.png'))
->favicon(asset('favicon.ico'))
->viteTheme('resources/css/app.css')
->sidebarCollapsibleOnDesktop()
->colors([
'primary' => Color::Indigo,
])
->discoverResources(in: app_path('Filament/Admin/Resources'), for: 'App\\Filament\\Admin\\Resources')
->discoverPages(in: app_path('Filament/Admin/Pages'), for: 'App\\Filament\\Admin\\Pages')
->pages([
Pages\Dashboard::class,
])
->discoverWidgets(in: app_path('Filament/Admin/Widgets'), for: 'App\\Filament\\Admin\\Widgets')
->widgets([
Widgets\AccountWidget::class,
Widgets\FilamentInfoWidget::class,
])
->middleware([
EncryptCookies::class,
AddQueuedCookiesToResponse::class,
StartSession::class,
AuthenticateSession::class,
ShareErrorsFromSession::class,
VerifyCsrfToken::class,
SubstituteBindings::class,
DisableBladeIconComponents::class,
DispatchServingFilamentEvent::class,
])
->authMiddleware([
Authenticate::class,
])
->authGuard('admin');
}

public function boot(): void
{
FilamentView::registerRenderHook(
PanelsRenderHook::USER_MENU_BEFORE,
fn (): View => view('components.admin-panel-badge')
);
}
}
class AdminPanelProvider extends PanelProvider
{
public function panel(Panel $panel): Panel
{
return $panel
->id('admin')
->path('admin')
->login()
->brandLogo(asset('images/logo.png'))
->favicon(asset('favicon.ico'))
->viteTheme('resources/css/app.css')
->sidebarCollapsibleOnDesktop()
->colors([
'primary' => Color::Indigo,
])
->discoverResources(in: app_path('Filament/Admin/Resources'), for: 'App\\Filament\\Admin\\Resources')
->discoverPages(in: app_path('Filament/Admin/Pages'), for: 'App\\Filament\\Admin\\Pages')
->pages([
Pages\Dashboard::class,
])
->discoverWidgets(in: app_path('Filament/Admin/Widgets'), for: 'App\\Filament\\Admin\\Widgets')
->widgets([
Widgets\AccountWidget::class,
Widgets\FilamentInfoWidget::class,
])
->middleware([
EncryptCookies::class,
AddQueuedCookiesToResponse::class,
StartSession::class,
AuthenticateSession::class,
ShareErrorsFromSession::class,
VerifyCsrfToken::class,
SubstituteBindings::class,
DisableBladeIconComponents::class,
DispatchServingFilamentEvent::class,
])
->authMiddleware([
Authenticate::class,
])
->authGuard('admin');
}

public function boot(): void
{
FilamentView::registerRenderHook(
PanelsRenderHook::USER_MENU_BEFORE,
fn (): View => view('components.admin-panel-badge')
);
}
}
16 replies
FFilament
Created by Jpac14 on 12/31/2024 in #❓┊help
Update text input dynamic based off other important
For each one, okay. Thanks. I though there would be an easier way.
12 replies
FFilament
Created by Jpac14 on 12/31/2024 in #❓┊help
Update text input dynamic based off other important
I have tried that, but I want the text input to update when I change the toggles or the select?
12 replies
FFilament
Created by Jpac14 on 12/31/2024 in #❓┊help
Update text input dynamic based off other important
It is apart of the panel builder inside a header action, with a modal form?
12 replies
FFilament
Created by Jpac14 on 12/31/2024 in #❓┊help
Update text input dynamic based off other important
Or is afterStateUpdate my best bet?
12 replies
FFilament
Created by Jpac14 on 12/31/2024 in #❓┊help
Update text input dynamic based off other important
Could I even link it in with extra attributes and use alpinejs to update it?
12 replies
FFilament
Created by Jpac14 on 12/31/2024 in #❓┊help
Update text input dynamic based off other important
That I can just have a function on the url to get the state when it's updated
12 replies
FFilament
Created by Jpac14 on 12/31/2024 in #❓┊help
Update text input dynamic based off other important
But I don't want to use afterStateUpdate on each input is there a better way
12 replies
FFilament
Created by Jpac14 on 12/29/2024 in #❓┊help
Trying to dynamically disable file input, when checkbox is checked
If you have any other ideas let me know. Thanks, Jpac14
10 replies