Questions tagged as 'laravel-5'

1
answer

Uncaught TypeError is not a function - Laravel Vue

Inside the template of the Event.vue component I have a select that reads from the wallet table, it is a normal select to choose only one type of wallet (it is not multiselect), for that select I occupy the vue-multiselect component to make a si...
asked by 26.04.2018 / 04:36
1
answer

Create a PDF and send it by email

You see, I have created a view which has to create a PDF with a list of several users and send an e-mail attached to an email address. This is the form: @extends('layouts.app') @section('content') <div class="container"> <div cla...
asked by 11.05.2018 / 17:00
1
answer

Laravel, create record if it does not exist

I have a project in laravel with a database < a href="/ questions / tagged / mysql" class="post-tag" title = 'show questions with the tag "mysql"'> mysql and another with mysql to make a transfer of data from one system to another, the fiel...
asked by 26.06.2018 / 16:05
1
answer

Pivot table with 3 models in laravel

I have 3 tables: Draw, player and round, and in turn a table in common for the three having as attributes: id, id_draw, player_id, id_ronda. What I do not know, is how to put together this type of relationship and how to insert data. Since in...
asked by 04.11.2016 / 03:42
1
answer

Integrate Materialize css in Laravel 5.4

Could someone tell me how to install, materialize css in my project done in laravel ? I am currently working with the 5.4 version of laravel I ask this question, because I know it comes with bootstrap installed when you make a new project. If...
asked by 26.04.2017 / 06:37
0
answers

Login by Api Token Laravel 5.4

I'm making a login by api_token using laravel 5.4 The route is defined as Route::get('/test', 'Auth\authenticatedApiLogin@authenticatedApiLogin')->middleware('auth:api'); And if I do within the method: dd(Auth::guard('api')->user...
asked by 27.04.2017 / 17:25
2
answers

What are the models for Laravel 5.3 for?

Excuse my ignorance. I create the models in the following way: php artisan make:model Marcas -m And the model I leave it as it is created: namespace App; use Illuminate\Database\Eloquent\Model; class Marcas extends Model { // } I...
asked by 14.01.2017 / 22:32
4
answers

How to hide the url in laravel when you use get to edit?

I want to edit a record using its id and I have the following code in my view: <a href="{{route('guest.edit',$g->id)}}" class="btn btn-simple btn-warning btn-icon edit"><i class="ti-pencil-alt"></i></a> And so I h...
asked by 08.11.2017 / 20:29
1
answer

The mysterious message "example"

You see, I want to send someone a message in Laravel. I have this function: // Enviamos a un usuario inactivo un mensaje de activación. public function mensajeActivar(User $usuario){ Mail::to($usuario->email)->send(new Mensajeria($us...
asked by 06.12.2018 / 17:28
3
answers

How to hide ID on routes laravel 5?

I have the following URL: domain.com/user/3/edit. I would like to know if it is recommended that the user's ID appear in the URL, or a URL such as: dominio.com/usuario/edit. Should the last option be better, how could it be done? modifying...
asked by 03.11.2016 / 13:53