Questions tagged as 'laravel'

1
answer

How to insert an array into another array in php

I can not perform this insertion even in an array, considering that I have this static array of example in php. Where I intend to visualize the record in a bar graph with the canvasjs library, where one of its attributes is to pass an array like...
asked by 04.12.2018 / 11:22
0
answers

Problem with the POST method

Good afternoon! My problem is this, I am trying to send an array through a Script to a route to get to use a function inside a controller, but my problem is that when I run my program I get the error: > MethodNotAllowedHttpException in R...
asked by 30.11.2018 / 00:57
0
answers

Global variable in laravel 5.7 (to access it from any Controller or class)

I need to save an object that simulates a database in a global variable. I'm not interested in accessing any real database at the moment, but I'm interested in accessing that object from the different controllers to simulate my crud. I tri...
asked by 30.11.2018 / 10:50
0
answers

Schedules of laravel in cpanel, shared server

I am trying to register the Schedule to execute the commands that are already created, but they are not executed, I register them from a cron task I have used several ways /usr/local/bin/php /home/findelmu/findelmundoremates/artisan schedu...
asked by 24.11.2018 / 00:53
0
answers

Error: Attempting to get ownership of a non-object

I'm having the following error when trying to get the value idEtapa in this way $ activity-> stage-> idEtapa. I have the same error accessing this way: $ activity-> stage ['idEtapa']. My code is this: public function GuardarCronogr...
asked by 29.11.2018 / 16:39
0
answers

Problem in calling the laravel database

It turns out that I'm trying to call if there is a field in the database, and if it does not exist, create it, but when I put it into operation, it generates this error: Symfony \ Component \ Debug \ Exception \ FatalThrowableError (E_ERROR) C...
asked by 23.11.2018 / 18:25
2
answers

Get form data by ajax - POST method worked - PUT method not

I have a form that sends the information to the controller by ajax. When adding a record using type: POST if it works since doing dd ($ request-> all ()) shows me the array with the data. function saveReg() { var datos = new FormData();...
asked by 23.11.2018 / 16:25
2
answers

"cross-env" is not recognized as an internal or external command, program or batch file executable

I am trying to execute the command: npm run watch to compile the files in laravel 5.6. I'm using laragon that includes Node js 8.9. This is the error script: $ npm run watch > @ watch C:\laragon\www\learning > npm run developm...
asked by 21.11.2018 / 23:15
1
answer

How do I send the value of a file type input by ajax to be used in the controller?

I have a form which sends the data to the controller through ajax <script> function save() { $.ajax({ type: 'POST', url: '{{url('/user/new')}}', data: { startDat...
asked by 21.11.2018 / 21:03
0
answers

How to add data from a modal to a view create in Laravel

I have a view to create where I call data from a table called Computer and inside it I have a modal that contains a foreach that brings me the data of a foreigner. What I would like to know is how to add the data of the modal to my view create,...
asked by 21.11.2018 / 19:04