how to show error_log() in filament-laravel

Viewed 30

I trying to debug something in my filament-laravel using error_log('testing..'), But I can't find the error message in terminal. The program is running well, form function running well also.

Here is code :

public static function form(Form $form): Form
{
    error_log('testing..');
    return $form
        ->schema([

            Card::make()
                ->schema([
                    TextInput::make('country_code')
                    ->maxLength(3),
                    TextInput::make('name')
                    ->maxLength(255),

                ]),
        ]);
}

Thank. You.

2 Answers

You should use dd().

dd($message);

This will show the error log on the page. Very handy for debugging!

Related