Questions tagged as 'laravel'

1
answer

How to get data from a dynamic HTML table to make a record?

I have the following situation: I'm trying to register data from the Protocol Checklist , but this data is inside an HTML PivotTable, as shown in the following image: Whentryingtosavethisdata,onlythelastrecord(item4)ispassedintherequest...
asked by 19.11.2018 / 15:26
1
answer

How to make an authentification in Laravel with another login view

I'm working as a database already populated, it already has a user and a default admin password. What I want to do is authenticate this admin with a login view that I made myself. I'm lost in the part that I've already created the "auth" I...
asked by 19.11.2018 / 17:44
1
answer

Error in Vue.js build in Laravel

I'm getting the following error when saving the app.js file: link The files are these: app.js: require('./bootstrap'); window.Vue = require('vue'); Vue.component('example-component', require('./components/ExampleComponent.vue'...
asked by 07.11.2018 / 19:03
2
answers

Operator "or" blade laravel does not work

When I try to use the "or" operator on the blade it renders the wrong and undefined variable. I'm calling it like this: {{ $confirmed or false }} But it's compiling like this: <?php echo e($confirmed or false); ?>     
asked by 25.10.2018 / 22:51
1
answer

Laravel and Github

Good afternoon, I am currently taking a course and I am on the subject of routes in the course of laravel, I am following the lessons perfectly. I made the installations of all the requirements that are in class, like xampp, npm, composer etc. I...
asked by 29.10.2018 / 15:56
1
answer

Do I need to use auth middleware in the controller if I use Laravel's Gates?

Is it safe to remove an authentication middleware from a controller if I have already set a Gate on Laravel? I did so: No AuthServiceProvider.php Gate::define( 'admin', function ( $user ) { return $user->cargo_id == '3'; } );...
asked by 30.10.2018 / 13:01
1
answer

Complete form without reloading the page

I'm trying to implement a page where the values of a table can be changed in the database of a system. When I select the name of the people listed, I call the function ola through onchange , which is working perfectly, but when t...
asked by 22.10.2018 / 15:30
2
answers

Return columns from table pivo belongsToMany Laravel

Goodmorningperson.IcreatedasearchthatreturnstherequestsandwhenIclickopenstheproductsofthatrequest.ButIcannotmaketheproductsappearasastring,onlyinarrayformatasintheimage.DoesanyoneknowwhatI'vedonewrong?MODELREQUESTpublicfunctionproduto(){return$...
asked by 05.11.2018 / 15:00
1
answer

How to retrieve checkbox data as "checked"?

Context: Home I am creating the "Refresh Structure" method, depending on the selected template the items should be marked in CheckBox . But for some reason it is not working. How to solve this problem? ChecklistController.phpControlleredit...
asked by 24.09.2018 / 21:51
1
answer

Laravel HTTP ERROR 500 linux [closed]

I'm a complete noob on Linux, I was working normally, and Linux installed some updates that suddenly instead of displaying Laravel's error screen, I get the screen. HTTP ERROR 500 In the middle of this I was using the git stash comm...
asked by 02.10.2018 / 21:49