Questions tagged as 'laravel'

1
answer

Problem when retrieving data from a table

I created the branch model: <?php namespace App; use Illuminate\Database\Eloquent\Model; class Sucursal extends Model { protected $table = "sucursal"; public $primaryKey = 'ID_SUC'; public $timestamps = false; } I created...
asked by 22.11.2018 / 03:17
0
answers

How can I validate permissions per month?

I am trying to do a validation that only allows me to register 2 permits per month, that is to say after the two monthly permits, I will not be able to carry out any other permits if not until next month. I have my following code: var conta...
asked by 20.11.2018 / 18:21
1
answer

query eloquent pivot table

I have the following tables empresa | estado_empresa | estado -id -id_empresa -id -nombre -id_estado -estado -Fecha_creado -Fecha_actualizado In my system, comp...
asked by 21.11.2018 / 16:01
0
answers

Error uploading files in form and sending to the controller. Laravel

In a form I have an input of type 'File' to upload a file and get the value of that file in the controller, but when doing dd ($ request-> file ('file') it shows me NULL. {{ Form::open(array('url' => '/save'), ['id' => 'Form'...
asked by 19.11.2018 / 14:59
1
answer

how to fill some input with the option of a select using javascript?

I have this view and I would like to know how to fill the inputs when I select the option of the select that is from a foreign table, in the option of the select is the foreign key and another attribute of the table, but I do not know how to put...
asked by 19.11.2018 / 20:20
1
answer

Problem when trying to obtain and delete a session in laravel with $ request-session () - get ('cart') and Session :: get ('cart')

I am developing an online store with Payu Latam, what I want to do is that when payu confirms a purchase I can empty the shopping cart of said buyer. The process is the next ... I send the purchase data to the Payu gateway so the users lea...
asked by 19.11.2018 / 19:24
0
answers

Pass input value to a model in VUE

I am working with vue, create a variant $ gate to be able to access the user's information in this way: <input type="hidden" name="" id="valueid_profile" :value="$gate.idProfile()"> my question is how can I do to pass the value idP...
asked by 17.11.2018 / 18:18
0
answers

Recover Deleted User Model in Laravel

Following a CRUD tutorial with Laravel and VUE, in a moment it makes me delete the Model 'User.php' because we were not going to use it. But now I find that I want to use it because I want to make an aravel system. I wanted to re-create the mode...
asked by 15.11.2018 / 17:12
1
answer

How to make requests with Postman

Hi, I'm trying to make requests with Postman but I do not know what else to put in. of This form is how I consult the data to visualize them in a Vue component, and it verifies if the request is Json. but I'm also using it as an api to acc...
asked by 14.11.2018 / 03:08
0
answers

Show process of uploading an image to the server

I'm using a system to upload images created with laravel and I wonder what forms there are to show the process of uploading the image especially when several are delayed at the same time and I would like to show the process of the upload     
asked by 12.11.2018 / 21:16