Questions tagged as 'laravel'

2
answers

How to send two data with Laravel lists?

I want to send 2 values to the view with lists of laravel admin.horarios.create The question is this, I have this code: public function create() { $docente = Docente::orderBy('nombre','ASC') ->...
asked by 02.12.2016 / 04:56
2
answers

Error Crud update Laravel

Someone helps me with this error that has me already with a headache please Part of the Controller of the Update: public function edit($id) { return view("almacen.categoria.edit",["categoria"=>Categoria::findOrFail($id)]); }...
asked by 24.08.2018 / 17:17
1
answer

Error executing laravel project cloned from git

I cloned a project of a repo git. When I try to open it ( link ) it tells me the following:    Fatal error: Uncaught Error: Class 'Illuminate \ Foundation \ Application' not found in C: \ xampp \ htdocs \ pikum.mapu \ bootstrap \ app.php: 14...
asked by 13.02.2018 / 14:01
1
answer

Why do Where and orWhere have conflicts?

I have made a search with eloquent laravel, but I had a problem at the moment of having 2 where and% orWhere , since in my database we work for state [0, 1] to see if a record has been low. But when searching for a...
asked by 05.10.2018 / 17:56
1
answer

problems installing Adminlte in laravel

I just plugged in again, I have a problem installing the Adminlte package, I install everything well the composer composer global require "acacha/adminlte-laravel-installer=~3.0" but apparently when executing the command adminlte-laravel...
asked by 30.09.2018 / 03:36
1
answer

Error removing dependency from laravel

When I removed a dependency of composer.json and executed composer update , the packete caffeinated/shinobi was eliminated, which weighed to replace it with a similar one since it gave me a lot of problems. But now when I...
asked by 29.11.2018 / 01:02
2
answers

Problems in AJAX query of POST type, sending JSON to Laravel controller

I have the following problem: I am trying to make a AJAX query POST by sending JSON to a controller in Laravel , to then record that information in the database, but I can not find where the error is because the query is not executed corr...
asked by 18.08.2017 / 13:07
2
answers

error when uploading image with laravel?

I have a form in which I save an image, I save the image in the folder successfully, but the new image path with its new name is not saved in the database. Save something like: "C:\xampp\tmp\php71AA.tmp"' This is the part I use to get the...
asked by 24.09.2018 / 19:08
1
answer

How to update a db without losing data in the tables of these in Laravel?

Every time I need to add a field, another modification I have to execute the php artisan migrate: refresh command but in doing so I update the db but it deletes the data already inserted. Is there a way to avoid that?     
asked by 19.04.2017 / 19:02
1
answer

BadMethodCallException Method [show] does not exist. Laravel

I have been doing a CRUD in Laravel and you are giving me an error that can not be found since I do not have any function that is called Show . Userscontroller: public function destroy($id_usuario) { $user = Usua...
asked by 31.08.2017 / 13:09