AlexAnder
AlexAnder
FFilament
Created by AlexAnder on 11/11/2024 in #❓┊help
console error ':popover-open' is not a valid selector
4 replies
FFilament
Created by Carbon on 10/26/2024 in #❓┊help
Server Crashes After Resource Update/Edit
Look at PHP error log. dd() the request,what you trying to save or sql error log..
6 replies
FFilament
Created by tadas322 on 4/4/2024 in #❓┊help
Trouble Displaying / Updating Pivot Table Data with Same Names as Parent Model
I have MorphToMany and also on relationManager, creating or editing related record, pivot column "description" doesn't updates or doesn't fill in edit form. The model:
class People extends Model
{
use HasLocks;
use SoftDeletes;

protected $fillable = [
'name',
'dob',
'description',
];

public function signals(): MorphToMany
{
return $this->morphToMany(Signal::class, 'signalable')
->withPivot(['id', 'description']);
}
}

class Signal extends Model
{
use HasLocks;
use SoftDeletes;

protected $fillable = [
'name',
'date',
'description',
];

public function peoples(): MorphToMany
{
return $this->morphedByMany(People::class, 'signalable')
->withPivot(['id', 'description']);
}
class People extends Model
{
use HasLocks;
use SoftDeletes;

protected $fillable = [
'name',
'dob',
'description',
];

public function signals(): MorphToMany
{
return $this->morphToMany(Signal::class, 'signalable')
->withPivot(['id', 'description']);
}
}

class Signal extends Model
{
use HasLocks;
use SoftDeletes;

protected $fillable = [
'name',
'date',
'description',
];

public function peoples(): MorphToMany
{
return $this->morphedByMany(People::class, 'signalable')
->withPivot(['id', 'description']);
}
9 replies
FFilament
Created by Sourabh on 6/10/2024 in #❓┊help
Table custom filter validate
This rules doesn't apply on filter inputs..
7 replies
FFilament
Created by Sourabh on 6/10/2024 in #❓┊help
Table custom filter validate
Hmm, how to validate table filter input? ->rules(... doesn't work..
7 replies
FFilament
Created by blex on 6/21/2024 in #❓┊help
Exporter - include relationships as extra rows
I ended up with the custom action, witch downloads excel generated by laravel-excel library using FromArray.
4 replies
FFilament
Created by blex on 6/21/2024 in #❓┊help
Exporter - include relationships as extra rows
I also interested on this.
4 replies
FFilament
Created by juanjoseva on 8/23/2024 in #❓┊help
Help formating a data in a repeater
put it in to dump($state) or dump($record) by passing $record in to function and see, how it'scoming from model.
3 replies
FFilament
Created by shaan on 7/1/2024 in #❓┊help
Slow Query - Slow Endpoints in Filamentphp v3
You can try EXPLAIN ANALYZE in DB for the specific query. Usualy, if You order by created_at and this column is not in index, then the sequential scan can be runniung..
7 replies
FFilament
Created by shaan on 7/1/2024 in #❓┊help
Slow Query - Slow Endpoints in Filamentphp v3
Add ->with(['user', 'template'])
7 replies
FFilament
Created by Jackson Falcão on 7/4/2024 in #❓┊help
Uploads Larger Than 16MB
In apache, maybe there is multiple config files for port 80 and 443 and the wrong config You edit. Maybe also for location /livewire is multiple entrys..
33 replies
FFilament
Created by AlexAnder on 4/18/2024 in #❓┊help
Custom page layout divide in 3 columns
Thanks. Thanks for Your time.
17 replies
FFilament
Created by AlexAnder on 4/18/2024 in #❓┊help
Custom page layout divide in 3 columns
different sizes..
<div class="flex gap-4">
<div class="size 1/4">One</div>
<div class="size 2/4">Two</div>
<div class="size 1/4">Three</div>
</div>
<div class="flex gap-4">
<div class="size 1/4">One</div>
<div class="size 2/4">Two</div>
<div class="size 1/4">Three</div>
</div>
17 replies
FFilament
Created by AlexAnder on 4/18/2024 in #❓┊help
Custom page layout divide in 3 columns
Dashboard filterForms doesn't have form with submit and show the result in the same page
17 replies
FFilament
Created by AlexAnder on 4/18/2024 in #❓┊help
Custom page layout divide in 3 columns
Screenshot is from dashboard->filterForms But I want to create custom page, where portraits shows from <img src="">... not fileupload
17 replies
FFilament
Created by AlexAnder on 4/18/2024 in #❓┊help
Custom page layout divide in 3 columns
No description
17 replies
FFilament
Created by AlexAnder on 4/18/2024 in #❓┊help
Custom page layout divide in 3 columns
I need search imput and on submit return portrait
17 replies
FFilament
Created by AlexAnder on 4/18/2024 in #❓┊help
Custom page layout divide in 3 columns
<x-filament-panels::page>
<x-filament::section>
<form wire:submit="search_by_code">
<div class="flex gap-4">
<div class="flex flex-col">
<x-filament::input.wrapper :valid="! $errors->has('id_code')">
<x-filament::input
type="text"
wire:model="id_code"
/>
</x-filament::input.wrapper>
<div>
@error('id_code') <span class="text-danger-600">{{ $message }}</span> @enderror
</div>
</div>
<div class="flex">{{ $atrada }}</div>
<div class="flex">{{ $atrada }}</div>
</div>
</form>
</x-filament::section>
</x-filament-panels::page>
<x-filament-panels::page>
<x-filament::section>
<form wire:submit="search_by_code">
<div class="flex gap-4">
<div class="flex flex-col">
<x-filament::input.wrapper :valid="! $errors->has('id_code')">
<x-filament::input
type="text"
wire:model="id_code"
/>
</x-filament::input.wrapper>
<div>
@error('id_code') <span class="text-danger-600">{{ $message }}</span> @enderror
</div>
</div>
<div class="flex">{{ $atrada }}</div>
<div class="flex">{{ $atrada }}</div>
</div>
</form>
</x-filament::section>
</x-filament-panels::page>
17 replies
FFilament
Created by 403gtfo on 1/10/2024 in #❓┊help
3.1 Importer File type error
No so easy. The importer doesn't accept even the file witch it provide download as sample. On my Linux it's works, but on Windows no. On windows csv file created with notepad, also uploads as application/vnd.ms-excel. I think, its in windows registry needs to be changed..
19 replies
FFilament
Created by 403gtfo on 1/10/2024 in #❓┊help
3.1 Importer File type error
I guess, in windows registry is some kind of mime types, which can be changed.. but in organizations network to change that is insane. Better solution is dynamically change the acceptedFileTypes() method
19 replies