Questions tagged as 'laravel-5.5'

1
answer

Import js file into template vuejs and laravel

I'm creating a simple application and need to import some js and specific css files on a particular page, but how do you do that? In my template (Login.vue) I tried <script> require('./assets/js/pages/forms.js'); </script> a...
asked by 12.01.2018 / 02:12
0
answers

How to create ForeignKey without data with laravel

I'm creating a system and I have two columns: empresas and usuarios . The usuarios.id_empresa does is the foreign key of empresas.id_empresa , however, some data of the two tables are filled in simultaneously and after...
asked by 30.12.2017 / 17:14
2
answers

Laravel how to fill a select with Eloquent?

I am using Laravel 5.5 and trying to fill a input select with Eloquent and using the following code: No controller : $tipos = Tipo::pluck('nome', 'id'); return view('teste')->with('tipos', $tipos); In view :...
asked by 30.12.2017 / 19:56
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
1
answer

Something setInterval style for PHP [duplicate]

Is there a function in PHP that schedules a given routine? What I would like is that at the turn of the day, in the case, 00:00, a script, in php, would be triggered to perform certain task. It would be more or less the setInterval of javascri...
asked by 18.01.2018 / 08:00
0
answers

MethodNotAllowedHttpException in laravel 5.5 pagination

I'm having trouble paging data in the view. When I perform the search it returns all the data, but when I access the pagination link it returns the error "MethodNotAllowedHttpException".    link I was having the same problem on the main...
asked by 08.09.2018 / 17:15
0
answers

mysql relations in laravel 5.5

I'm trying to model with Laravel a database for purchases, in my mysql the relations are thus , then I was modeling in Laravel, for the associative table "supplier_detail_item" I used "belongstoMany" relation, it worked out using tinker. Now...
asked by 23.08.2018 / 21:56
2
answers

Test if the image exists

Personal I use Intervention in Laravel 5.5 and use its routes with the filters to generate the images dynamically. I would like to know how I can test in the filter class and the image I passed it exists on the disk, otherwise I will upload a de...
asked by 18.04.2018 / 21:18
0
answers

SQLSTATE [HY000] General SQL Server error: Check messages from the SQL Server (severity 14) (SQL: select * from [product])

I have an application in laravel connecting in the database on a SQL Server when I will make a query of all the products I am getting the error SQLSTATE[HY000] General SQL Server error: Check messages from the SQL Server (severity 14) (SQL: se...
asked by 01.03.2018 / 20:55
0
answers

Query via get with Laravel

How do I pass data via get from a form? When I submit, the url gets meusite.com/pesquisar?termo=algumtermo&categoria=algumacategoria . How do I pass these two parameters termo and categoria to the route and thus send to...
asked by 06.02.2018 / 11:46