Questions tagged as 'laravel-5'

1
answer

How to get the name of the non-current route in laravel?

I have a problem in laravel to get the name of the route not current. Looking in the documentation I found this function currentRouteName() however this works only for the route that is running at that moment.     
asked by 01.07.2016 / 05:22
1
answer

Laravel 5.2 and Entrust

I have a problem that I have not been able to solve and it has been several hours in the. I am using Laravel 5.2 and the component to manage Roles and Permissions Entrust . Everything is well configured, including the middleware provided by En...
asked by 03.07.2016 / 18:49
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

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
1
answer

Error editing an entity with a unique Laravel field

I have an entity activities with the following Form Request as indicated in the documentation public function rules() { return [ 'name' => "required|max:200|unique:activities,name,". $this->activity_id ]; } When editin...
asked by 24.11.2018 / 00:51
1
answer

Problem with DataTable

What happens is that when you refresh the page you create a product automatically (it is the last product you enter), that is, you are inserting it when you refresh the page repeatedly, and the other problem is that when you just entered the sec...
asked by 19.10.2018 / 14:59
0
answers

Alternatives to the DOMPDF [closed]

You see, I have already spent too much time with the problem of not being able to print PDF documents in my Laravel project. Therefore, I would like to know if there are alternatives to DOMPDF, the method I use to print PDF in Laravel, to see if...
asked by 30.08.2018 / 16:50
1
answer

Download Files / Images Laravel 5.2

I tried to download files or images, but I just get this Sorry, the page you are looking for could not be found. 1/1 NotFoundHttpException in RouteCollection.php line 161: My route Route::get('/download/{$file}' , 'DetailController@...
asked by 19.07.2016 / 17:26