ingeday
ingeday
FFilament
Created by zydnrbrn on 1/2/2024 in #❓┊help
Get Current Step on Wizard
Hello, I hope you are doing great today! I was reading this topic and I have a question. In my scenario I have a Wizard inside a page.
protected function getFormSchema(): array
{


return [
Forms\Components\Wizard::make([
// Step 1: Importar archivo
Forms\Components\Wizard\Step::make('Importar Archivo')
->schema([
Forms\Components\FileUpload::make('csv_file')
->afterStateUpdated(function ($state, $set) {
if ($state) {
$this->verifyIntegrity($state, $set);
}
})
]),

// Step 2: Verificar integridad
Forms\Components\Wizard\Step::make('Verificar Integridad')
->schema([
Grid::make(1) // Una sola columna
->schema(function ($get, $set) {

// NOTE: Here in step 2, I show the value of the step variable received by GET, but it is evaluated only in the first request, that is, when step 1 loads, when I go to step 2 it returns NULL.
dd(request()->query('step'));

// Here I want to evaluate with an IF...ELSE request()->query('step')

return [];
})
]),
protected function getFormSchema(): array
{


return [
Forms\Components\Wizard::make([
// Step 1: Importar archivo
Forms\Components\Wizard\Step::make('Importar Archivo')
->schema([
Forms\Components\FileUpload::make('csv_file')
->afterStateUpdated(function ($state, $set) {
if ($state) {
$this->verifyIntegrity($state, $set);
}
})
]),

// Step 2: Verificar integridad
Forms\Components\Wizard\Step::make('Verificar Integridad')
->schema([
Grid::make(1) // Una sola columna
->schema(function ($get, $set) {

// NOTE: Here in step 2, I show the value of the step variable received by GET, but it is evaluated only in the first request, that is, when step 1 loads, when I go to step 2 it returns NULL.
dd(request()->query('step'));

// Here I want to evaluate with an IF...ELSE request()->query('step')

return [];
})
]),
Any idea to get correctly the current step in every steps ? Thanks a lot.
10 replies
FFilament
Created by ingeday on 12/6/2024 in #❓┊help
Resource is not visible in navigation menu
Finally, I figured it out making a clean deploy. I deleted all files in production enviroment and moved all files again. The App worked. Thanks. #solved
20 replies
FFilament
Created by ingeday on 12/6/2024 in #❓┊help
Resource is not visible in navigation menu
To show a link in the admin panel only Do I need to create the resource file or is there anything else I have to do?
20 replies
FFilament
Created by ingeday on 12/6/2024 in #❓┊help
Resource is not visible in navigation menu
I decided (temporarily) to make a link manually in the AdminPanel
20 replies
FFilament
Created by ingeday on 12/6/2024 in #❓┊help
Resource is not visible in navigation menu
The route is accessed correctly via browser
20 replies
FFilament
Created by ingeday on 12/6/2024 in #❓┊help
Resource is not visible in navigation menu
I created the resource through terminal command. It works In development env correctly but in the hosting I transferred all source code with a github actions. The route is listed correctly with php artisan route:list
20 replies
FFilament
Created by ingeday on 12/6/2024 in #❓┊help
Resource is not visible in navigation menu
I was thinking It could be related to cache. I cleared the cache but It’s not worked.
20 replies
FFilament
Created by ingeday on 12/6/2024 in #❓┊help
Resource is not visible in navigation menu
No, I don’t have roles system. It’s strange, because in development it is visible
20 replies
FFilament
Created by ingeday on 11/8/2024 in #❓┊help
How to upgrading filament to minor versions
I've set up the Vagrant environment, and it worked. I haven't heard of Herd. This weekend, I'll be checking out Herd. Thanks a lot.
19 replies
FFilament
Created by ingeday on 11/8/2024 in #❓┊help
How to upgrading filament to minor versions
Because it's bothersome to restart php artisan serve for every request during development.
19 replies
FFilament
Created by ingeday on 11/8/2024 in #❓┊help
How to upgrading filament to minor versions
But, Because of I could run the project correctly in a host, so I am installing a vagrant environment right now
19 replies
FFilament
Created by ingeday on 11/8/2024 in #❓┊help
How to upgrading filament to minor versions
Sometimes, there are errors when calling any PHP function. It's crazy.
19 replies
FFilament
Created by ingeday on 11/8/2024 in #❓┊help
How to upgrading filament to minor versions
running the project under apache It does not run artisan serve
19 replies
FFilament
Created by ingeday on 11/8/2024 in #❓┊help
How to upgrading filament to minor versions
Sure, but artisan serve is available within each Laravel project. No? And my apache got crashed too.
19 replies
FFilament
Created by ingeday on 11/8/2024 in #❓┊help
How to upgrading filament to minor versions
I am here again... I've been working on it all day. I realized that the code of the project works correctly when it's hosted, but it doesn't work on my computer, neither when using php artisan serve nor Apache. For now, my conclusion is that something on my system is affecting my project with Filament. It might be Composer, Node, or the PHP module or something else. The only thing I did yesterday was set up a self-hosted action runner on GitHub to work with the project. Everything is a little strange, but for now, I've discarded the idea that it was due to the updating process. Thanks a lot.
19 replies
FFilament
Created by ingeday on 11/6/2024 in #❓┊help
open a modal from a navigationitem
I will see it. Thank you.
9 replies
FFilament
Created by ingeday on 11/8/2024 in #❓┊help
How to upgrading filament to minor versions
Hello. I have done that right now. I installed a clean project Laravel, then installed filament and the panels just following this link https://filamentphp.com/docs/3.x/panels/installation Later, I copied theese files: migrations/..., seeds/... and factories/.. and run php artisan migrate --seed and the project worked. Later I copied a resources (User Resources) - UserResource.php - UserResource/CreateUser.php - UserResource/EditUser.php - UserResource/ListUsers.php And I have something like the video I've attached.
19 replies
FFilament
Created by Carbon on 10/26/2024 in #❓┊help
Server Crashes After Resource Update/Edit
I have a similar scenario. My development server "php artisan serve" or even apache got crashed. I looks like a incompatibility with livewire. Just checking it out I see this: I use
@livewire(App\Filament\Resources\QuotationResourcesResource\Widgets\AllQuotations::class)
@livewire(App\Filament\Resources\QuotationResourcesResource\Widgets\AllQuotations::class)
The first times ALL is OK, then when It got crashed, an error is related with livewire I comment that and works again.
Do you know any way to check the livewire installation in filament ?
6 replies
FFilament
Created by ingeday on 11/8/2024 in #❓┊help
How to upgrading filament to minor versions
Do I have to do any additional step? I think I broke my project.
Is it possible make a clean installation and to migrate all resources what I worked?
19 replies
FFilament
Created by Carbon on 10/26/2024 in #❓┊help
Server Crashes After Resource Update/Edit
Were you able to fix it?
6 replies