Questions tagged as 'laravel'

1
answer

Call to a member function random on null in Laravel 5.7

I am doing a test project for my learning of Laravel in its version 5.7 I am in the part of launching a seeder for, with everything configured in the factories, the models and the DatabaseSeeder, random data are created in the database to be...
asked by 25.09.2018 / 00:18
1
answer

Pass the Header to Dropzone - laravel

Hi, I have a question about how to pass the Token to my Dropzone. I usually did it from a laravel view. Adding Js. in herself. And there was no problem. var myDropZone = new Dropzone('.dropzone',{ url: '/admin/posts/{{$post->...
asked by 25.09.2018 / 10:44
1
answer

soCapture data from a row with JQuery - Ajax - Laravel

I have the following code that shows without any problem a table of records generated from a json array. $.each(query, function (name, value) { fileTable +="<tr><td width='10%'><input type='text' name='fechaAsignacion' id='f...
asked by 19.09.2018 / 16:50
2
answers

Error: Trying to get property of non-object

I have a problem accessing a specific data of an array try foreach ($data as $value) { print_r($value->mat_id); } and I get Trying to get property of non-object     
asked by 26.09.2018 / 11:50
1
answer

Display a date in one format and store it in another (Datepicker in Laravel)

I am working in laravel and I want to show in my Bootstrap Datepicker field a date in a format (dd / mm / yyyy) but I want to store it in format (yyyy / mm / dd). Is there any property in Datepicker to do that? This is my input: <div cla...
asked by 13.09.2018 / 20:18
3
answers

How valid is this query in laravel 5.6

$id_program_= DB::table('Programs')->select('id_Program') ->where("name","=",$row['name']) ->first('id_Program')->id_Program Erro: Trying to get property 'Program_id' of non-object     
asked by 21.09.2018 / 20:40
1
answer

Problems when consulting the database with a Laravel drop-down list

I have a question. I have a forms with two fields one is a input and the other is a select when doing the search of the two fields does not bring me anything. Here I put my query: $titulo = $request->get(‘titulo’); $provincia...
asked by 18.09.2018 / 20:07
1
answer

How to pass variables by link and GET method with resource routes Laravel

I have a question, I am working on a project and I need to send a variable that contains an ID to my create method or that simply passes me the url, for that I am using resource type routes: Route::resource('encuestaspy/participar', 'Users\Res...
asked by 04.09.2018 / 21:51
1
answer

Server does not receive full JS fix

I'm developing an application in Laravel, at a certain point I had to use an array of objects to store the information that is going to be sent to the server, the problem I'm having is that I build my array but at a certain point that the array...
asked by 31.08.2018 / 09:07
1
answer

Get mac address in laravel 5.6

I would like to know if it is possible to obtain both the mac address of the device that my laravel application uses, and the browser with which they access it. From what I've read you can only get the mac address of my devices connected to the...
asked by 21.08.2018 / 22:33