Questions tagged as 'laravel'

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

Run tests that consult an existing database with Laravel 5.4 - Dusk

I need to run automated tests on the search engine with Laravel 5.4 using Dusk . The database was not created from the framework migration system, so I have problems executing the tests that make queries to the database.    Illum...
asked by 26.09.2017 / 18:45
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
1
answer

Laravel 5.4 View composer with data from a $ request controller

I've been trying to get variables for several views for a long time. Basically what I need is to do this: class VarComposers { public function compose(View $view ){ $user = '555'; $view->with('user', $user); } }...
asked by 04.08.2017 / 22:36
1
answer

Vue 2 directive: src does not show image but loads HTML

I am creating this application with Laravel 5.4 and Vue 2 and I need to show an image if it is present or not. For this I used the directives v-if and v-else . To begin with, this is my JS code: var vm = new Vue({ el: "#app...
asked by 04.08.2017 / 21:26
1
answer

Access the contents of $ fillable without going through $ fillable. Trying to understand the massive allocation

Following a tutorial I have seen that its creator used something he had not seen until now that he was directly accessing the content of the attributes of a class without going directly through the attribute. He told me that this is called massi...
asked by 30.08.2017 / 19:01
1
answer

Validation for file upload does not work in Laravel 5.0

In my app in Laravel 5.0 I have a section (One of many) to upload documents that I want limited to only pdf, doc or docx and have a maximum weight of 5MB. In my form I have two inputs of the date type and my input of the file type. If I do not p...
asked by 19.07.2017 / 19:06
1
answer

Trying to get property of non-object (View :)

I have the following code, but when I am going to pass values to the view I get the error Trying to get property of non-object . Does anyone know what I'm doing wrong? In the control path: Route::get('test2', function(){ $client =...
asked by 20.07.2017 / 18:03
1
answer

How to show data with formats in a pdf

I have a textarea with an editor to send data with formats such as in bold, bullets, etc. and when I show that data in a pdf it shows them as follows: <p><b>LUGAR: </b>En estudio</p><p><b>CAPELLÁN:<...
asked by 08.08.2017 / 04:16
1
answer

Problem with Login and Routas Laravel 5.4

I am authenticating a user with ADLDAP using the package: link The authentication works correctly, at least I think so, the problem that is giving me is that once logged in, when I click on a menu button, it sends me directly to the login a...
asked by 14.08.2017 / 13:19