I am modifying an uploaded pdf with Fpdi, in laravel. The pdf is generated perfectly, I can see it in any file explorer. But laravel built in Storage::exists() returns false. It is a pretty weird error, because php file_exists method can find the file perfectly with the same path. I am completely out of ideas. ..
Category : exists
Como puedo especificar la columna de validacion en la regla exists. Mi tabla se llama "tables" tengo este codigo en mi controlador: ‘table_id’ => [ ‘required, Rule::exists(‘tables’)->where(function($query) use($request){ $query->where(‘id’, $request->table_id)->whereNull(‘deleted_at’); }), ] recibo este error: SQLSTATE[42S22]: Column not found: 1054 Unknown column ‘table_id’ in ‘where clause’ (SQL: select count(*) as aggregate from tables where table_id ..
I want to validate a form in Laravel. I want to check if a field exists in database only if it is present in request. When User filled the field in the form I what to check if the field exists in database, but if the User did not fill the field I want to ..