Posts by Eduardo Stuart • 320 points
16 posts
-
0
votes1
answer199
viewsA: Error while deploying Laravel project
Possible reasons: You are reading the compiled file from your Standard. You can clean using: php artisan clear-compiled php artisan view:clear # limpar apenas views If you use git, you may have…
-
1
votes2
answers936
viewsA: Check if an array is empty with Vue.js
If you are not sure that "tags" will always exist, I recommend using the following format: <div v-if="job.tags && jobs.tags.length > 0">
-
0
votes1
answer54
viewsA: Problems with Laravel Charts, always class error not found!
As you are setting the way for the full class, add \ at first. More information here: http://php.net/manual/en/language.namespaces.faq.php#language.namespaces.Faq.Qualified If you don’t put the bar…
-
2
votes1
answer309
viewsA: Relate two tables through another
That would be a "Many-to-Many" (https://laravel.com/docs/5.7/eloquent-relationships#Many-to-Many) Example: <?php namespace App; use Illuminate\Database\Eloquent\Model; class Processo extends…
-
0
votes2
answers345
viewsA: JSON with array within IONIC 3
If you are sure it will always be a value in the array or it will always get the first value: const turma = result && result.length > 0 ? dados[0].Turma : // primeira turma no array null;…
-
0
votes2
answers383
viewsA: Problem with file_get_contents
You can use Curl instead of file_get_contents. Example: $baseUrl = 'https://processual.trf1.jus.br/consultaProcessual/arquivo/partes.php'; $url = $baseUrl . '?' . http_build_query([ 'proc' =>…
-
1
votes1
answer215
viewsA: Problem with routes in the Axios + Aravel
Two tips: I recommend you define the baseUrl in Xios and if you need to access another url, just use the absolute path /o-path or a new url http://..../o-path. You can use Axios.create() for this.…
-
0
votes2
answers39
viewsA: High error when extracting data
In the Homestead, the default password of the database is "secret". DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=new-project DB_USERNAME=homestead DB_PASSWORD=secret More…
-
1
votes3
answers653
viewsA: List 3 tables in Laravel
You must use the following format: Model: Companies, Table: Companies Model: Contract, Table: Contracts In the business model: belongsToMany, contracts() In the model contracts: belongsToMany,…
-
1
votes3
answers150
viewsA: Json format is valid, but conceptually incorrect. How to argue?
The format is not incorrect. What you can do is define a specification (JSON Style Guide) and provide to the company. Some examples: - https://google.github.io/styleguide/jsoncstyleguide.xml -…
jsonanswered Eduardo Stuart 320 -
3
votes2
answers2805
viewsA: How to make Bootstrap work on IE7
Support Bootstrap for Internet explorer 8 + Internet Explorer 8 and 9 are also supported, However, Please be Aware that some CSS3 properties and HTML5 Elements are not Fully supported by These…
-
1
votes7
answers175
viewsA: Contact Form
I would remove characters that are not integer before making this check. An example: <?php $phone = isset( $_POST["phone"] ) ? $_POST["phone"] : null; function verificaDigitosTelefone( $telefone…
-
1
votes2
answers1309
viewsA: Error calling method on fragment
Add this to the Mainactivity class: public static MainActivity context; In the constructor, add the line: context = this; And in the "call", use: context.chamaCadastro(); Truth. Fragments within a…
-
2
votes2
answers63
viewsA: How to upload external images to a Chrome app?
Try updating the application’s manifest.json with the url you want to access. "permissions": ["storage", "webview", "<all_urls>"] The <all_urls> has the same effect as http://*/* or…
google-chromeanswered Eduardo Stuart 320 -
0
votes4
answers599
viewsA: Is there a problem omitting the semicolon in a php tag with only one expression
Not mandatory (in this case), but recommended. The closing tag of a PHP code block automatically implies in a semicolon; you don’t need to have a semicolon ending the last line of a PHP block. The…
phpanswered Eduardo Stuart 320 -
1
votes7
answers6999
viewsA: Split() integer with Javascript
You can try something like: var Valor = 19.9; var Dados = $.map( Valor.toString().split("."), function(v){ return parseInt(v); }); jQuery.map() - https://api.jquery.com/jQuery.map/…