Questions tagged as 'laravel-5'

0
answers

Load BD texts in an input to modify laravel

I have a question since I start to investigate and I do not give even with the answer. I want that in my view that has several input the text that is in my database is loaded and that is loaded in a div or something like that the previsualizatio...
asked by 06.03.2018 / 20:07
1
answer

Auth laravel 5.5 with a different table

I am trying to authenticate users with a table different from 'users', which is the default Laravel, my table fields are called different in this case "mail" and "password" I can not do the authentication because I do not recognize the field...
asked by 28.02.2018 / 21:39
1
answer

Laravel 5.5. Recover inciial filter in an index view around the back of a back view

I have made a CRUD with the typical views of create, edit, index and show. In the index view I have defined a field to perform a filter that works correctly. What I would like to know is how to maintain the initial filter of the index view when...
asked by 21.03.2018 / 21:23
1
answer

How do I access a view if it is a normal user and another view if it is an administrator using the same driver?

I wanted to access a view by means of a function in a controller if it was an administrator and in another view through that same function of the same controller for the user, but I do not know if this is possible or if it will give me problems...
asked by 28.01.2018 / 17:11
1
answer

Lumen (Laravel) create a custom helper file

I have created a file in the path app/Helpers/helper.php where I want to include the helpers I need for my project in lumen, at the moment I have this code <?php namespace App\Helpers; /** * Generate a "random" alpha-numeric strin...
asked by 27.02.2018 / 13:31
0
answers

Laravel without using the Models?

I wanted to make the following query regarding the working mode of Laravel 5.5. Is it possible to work or develop a project with Laravel without using the Models, that is, only using the controllers to obtain and send the data to the views (u...
asked by 21.01.2018 / 16:25
1
answer

Error 404 when accessing my virtual host

Good afternoon I am learning to use Laravel and for that I am doing a project, the problem is that when I try to access my virtual host it shows me a 404 error. I have the following routes in the routes / web.php file: Route::redirect('/',...
asked by 07.02.2018 / 21:26
1
answer

How to check a range of values in laravel?

Hi, I have a question: I want to know how I can check that my status is 1 or 2 within the laravel credentials. protected function credentials(Request $request) { return array_merge($request->only($this->username(), 'password'), ['sta...
asked by 14.12.2017 / 17:10
1
answer

Control the sessions in Laravel

I have detected several flaws in my laravel sessions and I do not sincerely like to solve them. When I log in and go to the Home. If I click on the back button of any browser, I go back to the Login screen. If I enter another incorrect passwo...
asked by 19.12.2017 / 12:48
1
answer

Add message to middleware laravel 5.5

I have a middleware that validates if the person verified your email, which works perfect because if you did not verify it, it returns it to your home. How can I add an alert message once it is redirected that says you should verify your emai...
asked by 17.10.2017 / 06:11