I have the following code in my Controller to save the image to the database, there is no error so I think it works fine.
$data = Input::file('assinatura');
$escaped = bin2hex($data);
$tecnico->assinatura = $escaped;
$tecnico->save();...
I have manipulated the DB data with the creation of Models, but in my most recent project I am tending to make use of Query Builder, but this is going wrong.
I would like to understand what is missing so that the code works perfectly. To begi...
I use the following method to update a table from form:
public function postEdit(){
$produto = Produto::find(Input::get('id'));
$produto->nome = Input::get('nome');
$produto->descricao = Input::get('descricao');
$...
I'm having the following error, after running a command to install a versioned project.
Script php artisan clear-compiled handling the pre-update-cmd event returned with an error
[RuntimeException]
Error Output: PHP Fatal error: Class...
Hello everyone, I need to build a array as follows for a plugin:
var data = [{
"label": "Follows",
"color": "#aad874",
"data": [
["Seg", 50],
["Ter", 84],
["Qua", 52],
["Qui", 88],
["S...
I'm developing a system that uses Mysql as a database and Mongo BD for image storage. The problem is that the loading of the images is very slow. NOTE: I am using laravel 5.2.
Function that loads image:
$db = new Conection("imagens");
$im...
There is a service that needs to send data via query string and it gives me a JSON return, however, I'm not getting this return, it does not send the query string.
$url = 'https://www.servico.com.br?nome=abc&cpf=abc&cep=abc'
Having...
Galera I have a search field for ajax in laravel that works normally local but on the server it is returning error. When the search route
(post -> link ) is triggered by the keyup event of error 301 Moved Permanently and then again (mysteriousl...
I'm starting to use this framework and I noticed that migrations when not created in a running cycle for execution can be several errors, is this normal?
For example, if you create a migration city but it has a constrai...
I'm working on a project in Laravel. I'm doing a dynamic search function using Ajax and Json.
Function in controller:
public static function busca_ajax()
{
$query = Input::get('query');
$resultados = Produto:...