Sep 17, 2020
0
Level 1
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
Please or to participate in this conversation.