Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Kijdsa's avatar

Nova filters

Hi, I read in the documentation but I'm not too clear. I did about what's there to filter by date or whatever. But, if I filter by date it didn't show me exactly just for that date and if I filter by a string the same Forget how I did it

date
public function apply(Request $request, $query, $value)
    {
        $value = Carbon::parse($value);

        return $query->where('created_at', '<=', Carbon::parse($value));
    }
by strings
 public function apply(Request $request, $query, $value)
    {
        return $query;
    }

    /**
     * Get the filter's available options.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return array
     */
    public function options(Request $request)
    {
        return [
            'Description' => 'description',
            'Project Name' => 'project_name',
            'App Type'     => 'app_type'
        ];
    }

Error: Column not found Unknown colum type

But I have the column in the table in the database

0 likes
0 replies

Please or to participate in this conversation.