Questions tagged as 'laravel-5'

1
answer

Receive data in sight - Yajra DataTables

I need to send a data through the render() method, however I do not know how to receive it in the view. Here is my code ( print_r($datos) generates me error: Undefined variable: datos ): Driver: InventoryDetailReportContr...
asked by 21.10.2017 / 01:00
0
answers

Convert to eloquent

I have this query that making it run in workbench returns me well SELECT msg.id, msg.messages,msg.readed, COUNT(cmt.message_id) as total FROM messages as msg inner join comments as cmt where cmt.message_id = msg.id; or this one that also re...
asked by 14.10.2017 / 21:17
0
answers

Laravel 5.2 ErrorException Undefined index: username

I followed this guide " link " to make the connection ldap with laravel and postgres but when I write The name of user and the password on the page, shows me this error and I have no idea what to do. Any idea what it could be? This is the...
asked by 23.10.2017 / 18:03
2
answers

I can not register a user in laravel 5.5

File of the registry controller I am trying to register a user to a table called users does not throw me any error when saving only saves them use RegistersUsers; /** * Where to redirect users after registration. * * @var string */ protec...
asked by 05.10.2017 / 18:42
1
answer

Does not return value with mutators in laravel 5.4

I have the following problem when using mutators to be able to generate a value that is inserted into the database: My model has a field called order responsible for carrying the position of a menu, when I generate a new menu I want yo...
asked by 23.11.2017 / 19:08
2
answers

Laravel 5: Foreign key constraint is incorrectly formed

I'm trying to create the following two tables with Laravel: Schema::create('orders', function (Blueprint $table) { $table->bigIncrements('id'); $table->primary('id'); $table->bigInteger('numPedido')->unsigned();...
asked by 21.09.2017 / 14:20
0
answers

Paginated table with ajax

I'm using laravel 5.4. In my table I bring the forms that the users completed. It looks like this I use a select, to be able to bring in a json and complete the table select: <select id="myselect" class="selectpicker" data-show...
asked by 27.09.2017 / 21:36
0
answers

Do I have to create a model in Laravel for a pivot table of 3 tables?

I am developing an application in which exam simulations are carried out. The exams are generated for each user with random questions. There are questions and each one has its answers, one of them is correct. In turn, the user performs the exam,...
asked by 16.11.2017 / 01:17
0
answers

log out automatically when session laravel 5.4 expires

in the configuration file of session.php I have 'lifetime' => 1, 'expire_on_close' => true, one minute expires the session and expire_on_close must log out. However, it does not work for me, does not leave session How I can do so...
asked by 26.09.2017 / 17:55
2
answers

Mail Laravel 5.4 (Mailables) Does not work and does not give an error

Controller: $sent = Mail::to('[email protected]')->send(new Welcome($name, $email, $phone, $msg)); .env: MAIL_DRIVER=smtp MAIL_HOST=smtp.dominio.com MAIL_PORT=587 [email protected] MAIL_PASSWORD=password MAIL_ENCRYPTI...
asked by 06.09.2017 / 10:11