Questions tagged as 'laravel'

3
answers

Problem with validating blocked users Laravel

I have a site which I have a function to validate if the email entered belongs or not to a user in blacklist (Blocked User). Which for the case that is fulfilled should not allow sending the form. What validation should do is, validate if t...
asked by 20.12.2018 / 17:45
1
answer

Too few arguments to function Illuminate \ Database \ Eloquent \ Model :: setAttribute ()

I am making a store to my database in this way: public function store(DocumentoAutorFormRequest $request) { // Se crea un objeto vinculo $vinculo = new DocumentoAutor; //EL ORDEN ES EL MAXIMO ORDEN +1 $orden=DB::table('cntrl_autor')->max('...
asked by 29.03.2018 / 02:14
2
answers

Sort data in a laravel view

I have a query, it turns out that in my Events handler I receive all the events of a teacher but I would like to sort them by date This is the index of my controller public function index(Request $request) { $profesor = Profesor::fin...
asked by 31.03.2017 / 23:26
1
answer

Search data in the drop-down list from a text field

How can you get a text field to search for a data that is in a drop-down list and that it automatically searches for the requested data from the text field? . I found an example in Javascript very interesting, but when I called the text fi...
asked by 09.11.2017 / 21:09
2
answers

Laravel 5.5 - The page has expired due to inactivity. Please refresh and try again

I'm trying to upload images to a project, after uploading 2 or 3 images I get the error    The page has expired due to inactivity. Please refresh and try again. It takes me out of the session and when I try to log in, I get the same error...
asked by 02.09.2017 / 03:43
2
answers

Problem with route resource

I have the following structure in the routes: Route::group(['prefix' => 'ventas', 'as' => 'ventas.'], function () { //INICIO Route::group(['namespace' => 'Inicio'], function() { Route::get('inicio', [ 'as'...
asked by 06.01.2017 / 15:20
3
answers

Set an attribute of the database to an input

I have a test function in javascript and what it does is that when I select a developer in the select, I pass the name of this to an input, but it passes me the id (all the select fields are from the database) Could you help solve it? I just nee...
asked by 30.10.2017 / 16:01
2
answers

Have several projects in laravel on a server?

I am trying to upload my project in laravel to my vps server. I do not know how to manage several projects on the apache web server. My directory structure is /var/www/html ... As I read in tutorials, it says that you have to leave the...
asked by 11.02.2016 / 16:39
2
answers

Display form data in another view

I have to pass the data of a form, by means of a controller to a new view (different from the form). I have written the following: In web.php: //ruta para meter datos y llamar al controlador: Route::get('/formalumno','AlumnosController@m...
asked by 03.02.2018 / 13:28
1
answer

How to save 0 and 1 with a checkbox?

I have a field called state and it is with a boolean attribute, I want to save it in the database when the input is in the checked state that stores the value 1 and the other one that stores 0, do you have any doubt about how to do it, Do you ha...
asked by 05.01.2018 / 15:03