I'm encounter an error when i do search the chinese character in laravel, it gave me General error: 1271,
here is my code:
$sales_record = SalesRecord::select(DB::raw('sales_records.id as id, sales_records.amount as amount, clients.name as name, sales_records.created_at as created_at, sales_records.updated_at as updated_at '))
->join('clients', 'sales_records.client_id', '=', 'clients.id')
->Where('sales_records.amount', 'LIKE', '%' . $search . '%')
->orWhere('clients.name', 'LIKE', '%' . $search . '%')
->orWhere('sales_records.created_at', 'LIKE', '%' . $search . '%')
->orWhere('sales_records.updated_at', 'LIKE', '%' . $search . '%')
->orderBy('sales_records.created_at', 'DESC')
->paginate(10);
And this error only appear on my godaddy share hosting, there is no error in my localhost.
Anyone know how to solve this error?