Log1x
Log1x
FFilament
Created by Blaze on 10/17/2024 in #❓┊help
Alpine js error, navigation group
5 replies
FFilament
Created by core on 1/1/2024 in #❓┊help
Issue after update to 3.1
i dont think the filament upgrade package for v2 to v3 mentioned in the docs does it automatically, but otherwise, filament:upgrade should be in post-autoload-dump as it has changes often and needs to publish its assets in most cases. you can see in the filament:install command that it gets added here: https://github.com/filamentphp/filament/blob/49be4992a5c5df58d9702de5817a6a7fbf8e1aef/packages/support/src/Commands/InstallCommand.php#L156-L163 which is reflected in my starter: https://github.com/Log1x/filament-starter/blob/main/composer.json#L50
54 replies
FFilament
Created by core on 1/1/2024 in #❓┊help
Issue after update to 3.1
ahh yeah not sure if it gets added when upgrading from v2 – but yeah otherwise it should be good now 😄
54 replies
FFilament
Created by core on 1/1/2024 in #❓┊help
Issue after update to 3.1
artisan filament:install should've otherwise added it to scripts for you when you initially installed filament
54 replies
FFilament
Created by core on 1/1/2024 in #❓┊help
Issue after update to 3.1
yeah
54 replies
FFilament
Created by core on 1/1/2024 in #❓┊help
Issue after update to 3.1
yeah it should stay like that
54 replies
FFilament
Created by Alex on 9/21/2023 in #❓┊help
`php artisan icons:cache` required but not documented?
someone forgot to take their meds
78 replies
FFilament
Created by Alex on 9/21/2023 in #❓┊help
`php artisan icons:cache` required but not documented?
full of entitlement
78 replies
FFilament
Created by Alex on 9/21/2023 in #❓┊help
`php artisan icons:cache` required but not documented?
open source can be a cesspool 🙂
78 replies
FFilament
Created by Alex on 9/21/2023 in #❓┊help
`php artisan icons:cache` required but not documented?
for what it's worth, I have a filament dashboard with 50k software, 400k files, 1.5 million file versions, and like 100k threats and have blade icons literally plastered everywhere and completely forgot about ever thinking about caching it til this thread. i've had 0 performance issues and its on a $10 droplet. this site also has a full frontend that also uses blade icons so... ive never had to think about performance once. its always been ⚡
78 replies
FFilament
Created by PaulaAndrea on 9/18/2023 in #❓┊help
Login in production
And if you get real traffic, probably https://envoyer.io/ for atomic deploys.
9 replies
FFilament
Created by PaulaAndrea on 9/18/2023 in #❓┊help
Login in production
DigitalOcean alongside something like https://forge.laravel.com/ or if you need more than just Laravel (e.g. WordPress), I like to use https://runcloud.io/
9 replies
FFilament
Created by PaulaAndrea on 9/18/2023 in #❓┊help
Login in production
cPanel is archaic – but somewhere nestled in the mess should be a way to set your websites "public_html path" – append /public to it.
9 replies
FFilament
Created by edwardwestbury on 9/1/2023 in #❓┊help
Dynamically injecting content to MarkdownEditor fails
ran into this as well. i think it's an issue with EasyMDE as I've experienced this in the past – not sure if there's a possible fix. 😦
4 replies
FFilament
Created by Log1x on 9/1/2023 in #❓┊help
Sort resource by relationship count – exception when empty
yeah & using https://filamentphp.com/docs/3.x/tables/columns/relationships#counting-relationships for the column. i assume ill have to take a different approach
5 replies
FFilament
Created by jerry55551 on 8/5/2023 in #❓┊help
Use Action in custom ViewRecord page
oh wow i got it i think. if you name testAction to assignTestAction instead and then yeah, you can just call it with parenthesis while on a viewrecord. you're right on the naming stuff.
101 replies
FFilament
Created by jerry55551 on 8/5/2023 in #❓┊help
Use Action in custom ViewRecord page
Here's a barebones example which should technically just work:
<x-filament-panels::page>
<div>
<div>Test</div>
<div>{{ $this->testAction() }}</div>
</div>
</x-filament-panels::page>
<x-filament-panels::page>
<div>
<div>Test</div>
<div>{{ $this->testAction() }}</div>
</div>
</x-filament-panels::page>
<?php

namespace App\Filament\Resources\EventResource\Pages;

use App\Filament\Resources\TestResource;
use Filament\Actions\Action;
use Filament\Resources\Pages\ViewRecord;
use Filament\Forms\Components\Select;
use App\Models\User;

class ViewTest extends ViewRecord
{
/**
* The resource class.
*/
protected static string $resource = TestResource::class;

/**
* The page view.
*/
protected static string $view = 'filament.pages.view-test';

/**
* The test action.
*
* @return Action
*/
public function testAction()
{
return Action::make('assignTest')
->fillForm([
'test_id' => $this->record->id,
])
->form([
Select::make('user_id')
->options(User::all()->pluck('name', 'id'))
])
->action(function (array $data): void {
dd($data);
});
}
}
<?php

namespace App\Filament\Resources\EventResource\Pages;

use App\Filament\Resources\TestResource;
use Filament\Actions\Action;
use Filament\Resources\Pages\ViewRecord;
use Filament\Forms\Components\Select;
use App\Models\User;

class ViewTest extends ViewRecord
{
/**
* The resource class.
*/
protected static string $resource = TestResource::class;

/**
* The page view.
*/
protected static string $view = 'filament.pages.view-test';

/**
* The test action.
*
* @return Action
*/
public function testAction()
{
return Action::make('assignTest')
->fillForm([
'test_id' => $this->record->id,
])
->form([
Select::make('user_id')
->options(User::all()->pluck('name', 'id'))
])
->action(function (array $data): void {
dd($data);
});
}
}
101 replies
FFilament
Created by jerry55551 on 8/5/2023 in #❓┊help
Use Action in custom ViewRecord page
otherwise I think it being a ViewRecord is getting in the way of me echoing out the action like its supposed too because it forces the infolist stuff on it
101 replies
FFilament
Created by jerry55551 on 8/5/2023 in #❓┊help
Use Action in custom ViewRecord page
well in this case, nothing is the related to the livewire component its self. i just want to echo out the action button in a certain place in my record view. all of the livewire-specific stuff works as intended.
101 replies