Questions tagged as 'laravel-5'

1
answer

Update a record with a single field

I'm using the l5-repository in my project, but I'm having the following difficulty: I have the code below to make the slug unique, but when I do an update it says that slug already exists, in> slug of the record I'm editing. How can I...
asked by 30.08.2016 / 19:34
0
answers

Query in Laravel using SQL tags Like, where, and, or

Good afternoon guys, I'm having a problem because I need to make the following query representation in laravel SELECT * FROM imovels AS i INNER JOIN estados AS e ON e.id = i.estado_id INNER JOIN cidades AS c ON c.id = i.cidade_id...
asked by 12.08.2016 / 17:13
1
answer

How can I access a Project path (URL) written in Laravel from another project (URL) that does not use Laravel?

Let's say I have myApp1.com and myApp2.com , and that only the second project is written in Laravel. My question is: Considering that myApp2.com has login authentication, would it be possible to create a link in myAp...
asked by 03.08.2016 / 20:39
0
answers

Laravel 5 - Database table for array with predefined index

Is there any way to retrieve the results of a query in the database and transform it into an array with one of the fields of the indexed array table? You could achieve this result in two steps. After the query, it loops and transforms into th...
asked by 29.07.2016 / 23:16
0
answers

Request select returning null value

Good afternoon, I'm having trouble getting the value of a select in the form below: {{Form::open(array('action' => 'FilterController@EstatisticaEsic', 'class' => 'form-filter'))}} <div class="col-md-2 col-sm-12 col-xs-12 d...
asked by 05.08.2016 / 20:02
1
answer

Laravel returns Incorrect table definition;

While running the migrate here, laravel is returning:    Incorrect table definition; there can be only one auto column and it   should be defined as a key. The code I am using to create the migration is attached: Schema::create('pessoa...
asked by 19.07.2016 / 14:35
0
answers

Disconnect frequently Laravel App

I created a CMS on the Laravel 5.2 platform, created the entire user system (login, register, reset pass, logout), however the user disconnects frequently, I have already disabled the Middleware VerifyCsrfToken but nothing happens. This h...
asked by 26.08.2016 / 06:31
1
answer

Laravel does not return BelongsTo

Oops I have two tables one with a Product name and one with a ProductName name. When I make the relationships in models, only the ProductCategory object returns the products, the Product object does not return the category. class ProdutoCateg...
asked by 13.07.2016 / 03:50
2
answers

How to keep a selected radio input in a view in Laravel?

How would I keep a input radio selected in my view , I have the following codes: View: <div class="col-md-3"> <div class="form-group"> <label>Tipo de Conta</label> <input type="rad...
asked by 13.06.2016 / 21:57
0
answers

Login and Registration on the same page - laravel 5.2

Hello, I'm developing a web system using laravel 5.2 and I used make: auth to generate the laravel login system, but I came across the following problem: I want to use the same login page on the registration form, but when I click on the s...
asked by 11.06.2016 / 22:40