Questions tagged as 'laravel-5'

1
answer

Apply filter in related tables laravel

Laravel's version is 5.4 Here I put the link of the project to download (Includes database to import, this in App / filtros_laravel.sql) link I will give a description of the problem. Let's start with the tables first. create table cl...
asked by 02.06.2017 / 05:22
1
answer

Tsvector of postgres in Laravel 5.3

I need to create a tsvector field ( link ) of postgres in my table > Documents I already searched in several places how to do it but I can not find it. Schema::create('documentos', function (Blueprint $table) { $table->increments(...
asked by 23.07.2017 / 04:13
1
answer

Problems when creating a project in Laravel

When I try to create a project in Laravel, with PHP 7.0 I have the following errors: ricky@pc:/var/www/html/proyectos$ laravel new 001 Crafting application... Loading composer repositories with package information Installing dependencies (inc...
asked by 21.04.2017 / 07:27
1
answer

How do I call AJAX with angularjs 1.6 and laravel 5.1? [closed]

I am trying to make an AJAX call from angular 1.6, my project is synchronized with laravel 5.1, I have a connection to the bd and I already check it, I just need to download the data and save it in vectors of js, each column a vector !!! Bein...
asked by 30.01.2017 / 18:11
1
answer

How to define a non-incremental primary key in Laravel 5?

A query. I have the table clients with the id and name fields. By means of a barcode reader I read a card, and I want to save the number that has said card (ex: 123465) in the id field, and that this field is my primary key. Laravel, saves...
asked by 16.03.2017 / 17:16
1
answer

configure mail laravel 5.3

Currently I want to configure my application in Laravel with dynamic database data for mail delivery. That is, host, port, driver, user, password I want to take them from database. How can I make the settings? In the config/mail.p...
asked by 03.01.2017 / 19:04
1
answer

Laravel 5.3 Eloquent Union Error

I have the following function: public function searchJoin(){ $first = $this->getModel() ->join('tarea_x_usuario', 'tarea_x_usuario.idTarea', '=', 'tarea.id') ->rightJoin('usuario', 'usuario.id'...
asked by 09.11.2016 / 16:52
1
answer

Do I need to create the models for the tables in the database? Laravel 5.1

I came up with the following doubt, in a project that I am doing I have about 25 tables for my database. My .sql file is already ready with the tables and I want to know if I have to create a model in Laravel for each table, I want to know becau...
asked by 08.10.2016 / 05:17
1
answer

Adjust timezone in each query from Laravel

I have developed a portal for a client and, at the last minute, he has asked me to adjust all the dates and times for foreign schedules. Is there any way for MySQL to provide the translated date to another Timezone from Laravel? I know the...
asked by 19.10.2016 / 09:40
3
answers

How to validate unique fields with custom Request when an update is made

The small problem is testing a user's editing form, when I validate the data with a custom request, it generates problems when I have unique fields. In my case, I have the email as a single field, when I edit and I do not want to modify the e...
asked by 20.10.2016 / 15:25