Questions tagged as 'laravel-5'

0
answers

Filter data through AJAX with POST request Laravel 5.4

Goodnight friends. I have a problem with the laravel framework and I can not manage to perform a simple task. When I write in an input I automatically send via AJAX by POST the value of the input to filter my table of users. $("#cedula")...
asked by 10.06.2018 / 04:13
0
answers

Filter tables according to whether it appears in the foreign value of a table

You see, I have an Animal table: Schema::create('animals',function(Blueprint $table){ $table->increments('id'); $table->string('nombre'); $table->string('cientifico'); $table->string('tipo');...
asked by 10.06.2018 / 11:16
0
answers

How to capture an image that I want to insert in the editor Froala, using larvel

Create the url waiting for the image but in the request I do not get something that I can read. View: <div class="row" id="form38"> <div class="col"> <textarea class="s...
asked by 08.06.2018 / 15:02
0
answers

Error: Extra content at the end of the document

Good afternoon I'm using laravel 5.6, and I'm trying to consume a SOAP-like webservice (wsdl), but when I try to consume it, he replies: SOAP-ERROR: Parsing WSDL: Couldn't load from http://www.loswebservice.com.bo:5000/WebServicesConsulta/Con...
asked by 05.06.2018 / 20:55
0
answers

Laravel 5.6 Eloquent Optimize A query

I need to optimize this in the model public function getPointStatsByUserId($id){ return array( 'total_win' => Trade::where('point' , '>', '0') ->where('user_id' , $id) ->sum('point'), 'to...
asked by 02.06.2018 / 01:44
2
answers

How to get user data related to the same model in Laravel

How can I get the data of another user, which is referenced from the same user model in Laravel? Keeping in mind that user has these columns in their migration: Schema::create('users', function (Blueprint $table) { $table->increm...
asked by 08.06.2018 / 11:21
1
answer

Storage procedures in Laravel does not return more than one table

I have a procedure stored in mysql that returns 3 tables, but when invoking it with laravel it only shows me the contents of the first table. route::get('/prueba/{id}','Emergencia\AsistenciaMedicaController@prueba');   ...
asked by 12.06.2018 / 04:40
0
answers

Sessions laravel

class ControlController extends Controller { public function anyadirCarrito($id, $quan) { $productoCarrito = (object)array( 'id' =>$id, 'cantidad' => $quan, ); \Session::push('cart', $prod...
asked by 29.05.2018 / 21:01
0
answers

VirtualHost with Laravel and Xampp

I have a query when configuring the virtual host with a laravel project every time I put localhost redirects me to the laravel project, and if I wanted to change to another one that is in my folder htdocs does not allow me and I wanted to know i...
asked by 21.06.2018 / 17:47
0
answers

Problem with Databaseseeder

You see, I have the following tables: Schema::create('empresas', function (Blueprint $table){ $table->increments('id'); $table->string('nombre'); $table->timestamps(); }); Schema::create('coches', func...
asked by 29.05.2018 / 10:31