TranceCode
TranceCode
Explore posts from servers
FFilament
Created by TranceCode on 5/7/2025 in #❓┊help
validation.required error after update filament
106 replies
FFilament
Created by TranceCode on 5/7/2025 in #❓┊help
validation.required error after update filament
Understand, thank you so much for the explanation @awcodes
106 replies
FFilament
Created by TranceCode on 5/7/2025 in #❓┊help
validation.required error after update filament
i will check all the project and add this parent::
106 replies
FFilament
Created by TranceCode on 5/7/2025 in #❓┊help
validation.required error after update filament
Yesterday I had the same problem then and applied as a solution to use cluster, I have a form in which I add or create new categories of services but I got a similar error ... then I checked, checked, found out, used AI, and nothing, it only occurred to me to jump to create the category in a model and resource apart and from there call it in the other resource, but now I see that it persisted in another resource, well the one we saw now ... It is strange if on the one hand because this has not happened to me for weeks, until now after having it working for weeks hahahaha maybe the update I did a few days ago deleted cache or something ... I don't know, very strange at the time, but now it is understood why!
106 replies
FFilament
Created by TranceCode on 5/7/2025 in #❓┊help
validation.required error after update filament
Aaah ok ok, now understand...
106 replies
FFilament
Created by TranceCode on 5/7/2025 in #❓┊help
validation.required error after update filament
so, this problem is only because i add the mount() method in my create page?
106 replies
FFilament
Created by TranceCode on 5/7/2025 in #❓┊help
validation.required error after update filament
Thank you so much friends, thank you for your time and kindness for help me with this problem...
106 replies
FFilament
Created by TranceCode on 5/7/2025 in #❓┊help
validation.required error after update filament
yes, it's working addding the parent::mount();
106 replies
FFilament
Created by TranceCode on 5/7/2025 in #❓┊help
validation.required error after update filament
yes
106 replies
FFilament
Created by TranceCode on 5/7/2025 in #❓┊help
validation.required error after update filament
the code is like this
<?php

namespace App\Filament\Resources\ScheduleResource\Pages;

use App\Filament\Resources\ScheduleResource;
use Filament\Notifications\Notification;
use Filament\Resources\Pages\CreateRecord;
use Illuminate\Support\Facades\Auth;

class CreateSchedule extends CreateRecord
{
protected static string $resource = ScheduleResource::class;

protected static bool $canCreateAnother = false;

public function mount(): void
{
parent::mount();

$user = Auth::user();

// Verificar si el usuario no tiene un negocio y no es admin
if (! $user->hasRole('Admin') && $user->businesses->isEmpty()) {
Notification::make()
->title('Acceso denegado')
->body('Debes crear un negocio antes de poder crear un horario')
->danger()
->persistent()
->send();

// redireccionar al listado
redirect()->route('filament.admin.resources.schedules.index');
}
}
}
<?php

namespace App\Filament\Resources\ScheduleResource\Pages;

use App\Filament\Resources\ScheduleResource;
use Filament\Notifications\Notification;
use Filament\Resources\Pages\CreateRecord;
use Illuminate\Support\Facades\Auth;

class CreateSchedule extends CreateRecord
{
protected static string $resource = ScheduleResource::class;

protected static bool $canCreateAnother = false;

public function mount(): void
{
parent::mount();

$user = Auth::user();

// Verificar si el usuario no tiene un negocio y no es admin
if (! $user->hasRole('Admin') && $user->businesses->isEmpty()) {
Notification::make()
->title('Acceso denegado')
->body('Debes crear un negocio antes de poder crear un horario')
->danger()
->persistent()
->send();

// redireccionar al listado
redirect()->route('filament.admin.resources.schedules.index');
}
}
}
106 replies
FFilament
Created by TranceCode on 5/7/2025 in #❓┊help
validation.required error after update filament
No description
106 replies
FFilament
Created by TranceCode on 5/7/2025 in #❓┊help
validation.required error after update filament
or if i send a true in toggle
106 replies
FFilament
Created by TranceCode on 5/7/2025 in #❓┊help
validation.required error after update filament
now return me a false
106 replies
FFilament
Created by TranceCode on 5/7/2025 in #❓┊help
validation.required error after update filament
cool
106 replies
FFilament
Created by TranceCode on 5/7/2025 in #❓┊help
validation.required error after update filament
Apparently it goes beyond just the problem with the Toggle
106 replies
FFilament
Created by TranceCode on 5/7/2025 in #❓┊help
validation.required error after update filament
livewire.js?id=df3a17f2:3910 Livewire Entangle Error: Livewire property ['data.category_id'] cannot be found on component: ['app.filament.clusters.service-category.resources.service-resource.pages.create-service']
106 replies
FFilament
Created by TranceCode on 5/7/2025 in #❓┊help
validation.required error after update filament
No description
106 replies
FFilament
Created by TranceCode on 5/7/2025 in #❓┊help
validation.required error after update filament
Checking the other components the problem persists and is the same.
106 replies
FFilament
Created by TranceCode on 5/7/2025 in #❓┊help
validation.required error after update filament
106 replies
FFilament
Created by TranceCode on 5/7/2025 in #❓┊help
validation.required error after update filament
No description
106 replies