Questions tagged as 'laravel'

4
answers

How to get a footer to stay in the background without exceeding other elements?

I'm having trouble placing it now with the absolute attribute, the problem is that because of this it works as if it were transparent and the objects go through it. link I would like to keep a space so that this does not happen. I'm u...
asked by 15.06.2018 / 16:50
2
answers

Get a list between two dates

I have created a restful api that obtains a list of coordinates that are stored in a database that follows the following format: / devices / 1 / gpses / 0, where the first number is the identifier of the device we want to see and the second is s...
asked by 06.06.2018 / 12:20
1
answer

How to insert an intermediate table in laravel?

having the following tables-migrations in laravel: Table person Schema::create('personas', function (Blueprint $table) { $table->increments('id'); $table->string("nombre"); $table->string("apellidom")->nullable();...
asked by 16.09.2018 / 13:00
2
answers

Laravel index blade show name of a foreign key

I would like to know how I could show the name of the specialty assigned to each doctor. This is my current doctor blade index: @extends('layouts.app') @section('content') @include('layouts.menu') <a href="createDoctor" class="btn btn-info...
asked by 30.05.2018 / 21:37
1
answer

How to get data from table roles the views through the Auth methods in laravel?

I have this relationship: In User.php: public function roles() { return $this ->belongsToMany('App\Role') ->withTimestamps(); } in Role.php public function users(){ return $this ->belongsToMany('App\User')...
asked by 26.05.2018 / 06:26
1
answer

save image name in laravel database

I'm trying to save the name of the image in the database from Laravel, I could get the name of the file but I get an error in the code: $name = time().'_'.$file->getClientOriginalExtension(); and then I do not know what the error is,...
asked by 24.05.2018 / 20:50
1
answer

Can you pass an array to a vue component?

I have a question. In a certain view of laravel I load certain data which through my controller I pass them with (Compact) and they are later loaded and I show them with my foreach. but I do not know if there is any way to pass that array to...
asked by 18.05.2018 / 02:37
1
answer

Error sending emails with user data with Laravel

I get the following error when trying to send an email with laravel    Type error: Argument 1 passed to App \ Mail \ AnalystMonth :: __ construct ()   must be an instance of App \ Mail \ DataUser, instance of   Illuminate \ Database \ Eloquen...
asked by 23.05.2018 / 20:29
3
answers

Help to resolve GET 500 error (Internal Server Error)

I am trying to create a dynamic select with ajax, when selecting a role, users with the selected role should be displayed. The script that I am using is the following <script type="text/javascript"> $(document).ready(function(){...
asked by 09.05.2018 / 20:10
2
answers

Show previous data of a select-Laravel

I enclose a fragment of the edit blade of the Appointment class. The code of the area of interest in question is the following: <div class="form-group col-md-6 "> <label for="exampleInputState1">Estado</label> <select...
asked by 21.05.2018 / 17:20