Questions tagged as 'laravel-5'

1
answer

Value of checkbox is nil, Column 'situation' can not be null

I have a $table->enum('situacao', ['ativo', 'exonerado']); field. I created a checkbox to do the registration, but it returns the following error:    1048 Column 'situation' can not be null. How can I resolve? The checkb...
asked by 22.12.2017 / 15:56
2
answers

Problems with rollback in Laravel 5.5

I'm doing the import / migration of an old database from a my site to a new format. I am using Transactions on this import, as per the code below. The problem is that when I make an error the rollback is not being triggered. For example I hav...
asked by 11.01.2018 / 01:42
1
answer

Laravel Schedule Frequency Options do not work

I'm having trouble with Cron running commands in Laravel 5.5 , run the command only every minute, not following the frequency options like every 5 minutes. Example: $schedule->command('create:log')->everyFiveMinutes(); My cro...
asked by 03.11.2017 / 00:26
0
answers

Questions about OAuth and Tokens in an API [closed]

Before, I would like to contextualize my scenario: Home I'm a student in the area who has a huge passion for mobile development and recently I've seen the need to create my own API's to enable the conversation between the application and my...
asked by 26.10.2017 / 06:45
0
answers

How to load select in VueJs

I've been able to implement the edit button, by clicking the button it will load all records that exist in a database in a form, I can load all the fields except selects . The problem is that I am not aware of loading the select from VueJS...
asked by 26.10.2017 / 17:31
0
answers

The Heroku server does not recognize my file vueJs

I deployed my Laravel project as shown in the video below: CLICK ON THE VIDEO Everything went fine, but when I went to load the page again it appeared: When attempting to perform any operation it generates all sorts of errors....
asked by 27.10.2017 / 20:35
0
answers

Inserting data on side 1 of the ratio 1: N - Laravel 5

I have the following tables, Condominios and CondominiosTaxas , which are a 1:N relationship, respectively, my relationship in the Condominium model: public function Taxas() { return $this->hasMany('WebCondom\Models\...
asked by 06.11.2017 / 11:57
0
answers

Upload Laravel + Vue.js

I need to upload some files, but there is a detail, a table will be mounted as in the figure below, I can already add to the table itself, but at the time of upload I have no idea of the procedure, I do not know if I am passing correctly, finall...
asked by 06.11.2017 / 03:25
0
answers

How to configure Laravel in heroku?

Greeting for all, I put a Laravel project in Heroku, and I can configure the database with my Laravel project, or if I can, to migrate the database using the php commands in heroku, to be able to make the settings correctly for it access to t...
asked by 27.10.2017 / 16:32
0
answers

How to use Eloquent without losing performance (51.39%) in Lumen 5.4?

Developing an API that must handle a high-performance website. By doing a few tests, I noticed that Eloquent usage is lowering the performance of requests in the MySQL database in 51.39% (more than half). The OS is ubuntu 16.04 and the fra...
asked by 12.10.2017 / 15:42