Questions tagged as 'laravel'

2
answers

Difference between @yield and @include in Blade de Laravel

Hello people wanted to know if there is any technical difference, in principle and for the function that I give them, they would be working the same. It seems clearer to use @include . but I would like to know if there are any details t...
asked by 23.09.2016 / 17:39
1
answer

This error is generated by the seed "You requested 1 items but there are only 0 items in the collection"

I'm trying to make a seed with Laravel 5.1 and the problem is that it generates the data from the users table, but from the other 2 it does not. My codes are as follows. ModelFactory $factory->define(Blog\User::class, function (Faker\G...
asked by 23.09.2016 / 05:45
2
answers

When an error occurs creating the user the list of errors is not displayed

Something is wrong with the registration of new users. Here I have an attempt to create a user in which I have incorrectly entered the password confirmation. That should return me to the creator of the new user with a message in red indica...
asked by 22.02.2018 / 21:20
1
answer

count results from the controller

With the following code I have to search in a BD = payments and if 'payment_date' is equal to today I will show it in the view. And according to what I found, I added an accountant. If you found 2 results the value of the variable $ varnum = 2....
asked by 07.09.2016 / 23:43
2
answers

concatenate JS variable in PHP

I have the following code and I need to be able to concatenate the variable data.id as I have it as an example in the text of the label a, since it is a second parameter that receives this route (Working with Laravel) the problem is generated by...
asked by 29.07.2016 / 02:03
1
answer

submit button with confirmation

I have a send button {!! Form::submit('Registrar',['class' => 'btn btn-primary'] ) !!} works fine, but I would like to see if there is any quick option of confirmation question. example onclick="return confirm('¿Estas Seguro?')" I h...
asked by 16.08.2016 / 01:10
1
answer

Feedback system in angular JS

I am trying to implement a comment system for my posts in angular js with Laravel . The problem I have is that adding a comment does not add to the list of comments but it eliminates the last one placed in the list and adds the most...
asked by 17.05.2016 / 02:24
1
answer

How do I resolve the "Call to undefined method Illuminate \ Database \ Query \"

In my blog I present all the articles in the beginning with a substr of what the post says, then I have a button to read more to see the article in another view and that's where my error comes from. It shows me the following error " Call to unde...
asked by 03.10.2016 / 07:42
0
answers

Problems consult eloquen laravel 5.5

I have two tables, one called users and another users, I made the query directly to mysql. SELECT COUNT(nombre), usuario_ad, name, last_name FROM usuarios, users where usuario_ad=username GROUP BY usuario_ad; which works fine, the last_n...
asked by 18.12.2018 / 04:15
1
answer

How to configure to open another project with Laravel + Homestead in Windows

I have made the configuration in the following files. Also make the command vagrant up and then vagrant reload --provision and another command vagrant-hostsupdater . I honestly can not see my other project in the browser, but...
asked by 24.08.2016 / 18:00