Posts by Ewerton Melo • 647 points
46 posts
-
1
votes1
answer314
viewsQ: Error in SOAP Request
I’ve been trying to connect in a WSDL, however, unsuccessfully. The web service provider gave me a file xxx.wsdl and passed me the credentials for the connection. I have been trying to do the…
-
1
votes1
answer659
viewsQ: Validation with Internationalization in Laravel 5.3 error
I am creating an application where I have to validate the data sent to the database (obvious), however, I am responding to the following error: Errorexception in Fileloader.php line 109: Object of…
-
1
votes2
answers1305
viewsQ: Vuejs: How to display a value in the dynamic modal input with v-model or v-bind:value
There is a list where return all active users on the system and in the same there is a button to Edit User, when I click on this option, I open a modal, capture the user id and perform a query of…
-
-4
votes4
answers989
viewsA: Return data from a URL with Query String
RESOLVED Guys, thank you so much for all the answers. However, I managed to solve the problem very simply. And so: $handle = fopen($url, 'r'); flock($handle, LOCK_SH); $result =…
-
0
votes4
answers989
viewsQ: Return data from a URL with Query String
There is a service that needs to send data via query string and it gives me a JSON return, however, I am not getting this return, it does not send the query string. $url =…
-
1
votes1
answer174
viewsA: Eloquent giving error 500 with many results
RESOLVED Guys, I managed to solve the problem, in quotes, but it meets the needs of the company. I already had an interface to implement several reports through script, IE, just create a Command in…
-
0
votes1
answer174
viewsQ: Eloquent giving error 500 with many results
I’m performing a query in my base with some LEFT JOIN and some WHERE clauses, however, I’m having a lot of difficulties with the return of this query that, for having many results, simply after a…
-
0
votes1
answer124
viewsQ: Catch string first with regex
I need to do a regex for an application from which I need to remove a certain combination of characters from within a string. Explaining the problem better. I have a string that returns from the…
-
2
votes1
answer366
viewsQ: Load HTML into received DIV via AJAX request by converting special characters
I am maintaining an application where there is now the need to load an HTML from the database into a div. Regarding the return of this database HTML, it’s cool, I already receive the values in a…
-
2
votes0
answers635
viewsQ: How to fix encoding problems on a web application page?
I am developing a JAVA application with the Spring framework v3.1.0, however, when trying to access a page shows error of encoding: Evolu㧠How to solve this problem? I found several ways, but none…
-
1
votes1
answer152
viewsA: Security in PHP
Interesting, but such measures would be you who would implement in the solution? All these measures are valid but I would also add: Use of token for sending forms. Client-side and server-side form…
phpanswered Ewerton Melo 647 -
0
votes3
answers369
viewsA: MVC and dynamic language change
You’d be creating another medium that would make sense. But, still it would be an extra job and for anyone else and for SEO purposes could have side effects. What I can recommend is the…
-
1
votes1
answer106
viewsQ: Failed to register a package created in Laravel 5.1
I am developing a package for Laravel 5.1 and I have identified a problem that I could not find the solution. Displays the following error: FatalErrorException in ProviderRepository.php line 146:…
-
1
votes1
answer50
viewsQ: Including string from a position
I’m racking my brain with an item that may be even simple to do but after twelve hours of work the mind doesn’t help... rsrsrsrs Friends, I have a stirng query, for example:…
javascriptasked Ewerton Melo 647 -
2
votes3
answers2361
viewsQ: Remove URL parameter with Javascript
I am creating a functionality for a system and I came across the need to manipulate URL parameters in this way I would like to know, how to delete a certain parameter from the URL? Follow a clearer…
-
2
votes1
answer1082
viewsQ: Problem with passing Nodejs/Express parameter
I am creating my first application in Nodejs and managed to structure the application, connection, directory structure, routes, in short, everything working right. Now, I went to implement the login…
-
1
votes1
answer298
viewsQ: Utilizar objeto entre as funções Javascript - Phonegap
I’m creating in onDeviceReady an object to create the connection to the application’s Sqlite database. It is being created as follows: var app = { initialize: function() { this.bindEvents(); this.db…
-
2
votes1
answer189
viewsQ: Problems with Phonegap and HTML5 Storage
I am creating a small application where I have to store the recovered driver data from a proprietary API to the application’s local database. After a lot of head-breaking, I chose to use HTML5…
-
0
votes0
answers246
viewsQ: Problems with Sqliteplugin Cordova/Phonegap
I am trying to create a connection to an Sqlite database created within my application and returns the following error. SQLitePlugin.executeSql[Batch](): Error=no such table: fornecedor_motorista…
-
0
votes1
answer89
viewsQ: 3MB Phonegap Application increases to almost 220MB. Can you explain it to me?
I’m developing my first Phonegap app for Android and I come across something that scared me a lot. The application, which so far has only interface, nothing business rule has increased its size…
-
1
votes0
answers17
viewsQ: Error creating COOKIE... Cannot Modify header information
I just picked up a project with a friend and came across the following Cookie mistake: Warning: Cannot Modify header information - headers already send by (output started at...) I’ll put the code…
phpasked Ewerton Melo 647 -
0
votes2
answers155
viewsQ: How to check WHERE clause with apostrophe in a DELETE operation?
I need to delete a record, however, in the WHERE clause one of the data has apostrophe. How can I verify this information, because it is obvious that will give error. DELETE FROM IES WHERE…
-
3
votes1
answer1957
viewsQ: Include ZERO before the numbers in CSV file?
I need to include ZERO to complete the digits of the CPF in the csv file, however, if the CPF starts with ZERO is taken out and only the numbers, that is, has Cpf that saves only 9 digits, because…
c#asked Ewerton Melo 647 -
2
votes1
answer5625
viewsA: Creating Foreign Keys by Migration - Laravel
The mistake was mine... : When I created Migration inverti the fields in Ferences() and on() Where is: $table->foreign('id_usuario')->references('usuario')->on('id'); Should be:…
-
2
votes1
answer5625
viewsQ: Creating Foreign Keys by Migration - Laravel
I’m having trouble when I try to create foreign keys by Migration in Laravel. Watch my Migration!!! <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint;…
-
1
votes1
answer967
viewsQ: Print json return text in the middle of code - Jquery/Javascript/JSON
I have a chart that is created according to the year, which is passed by AJAX and returns a JSON containing the values to create the chart. Well, I send the AJAX with the year, return the JSON,…
-
0
votes2
answers343
viewsA: Securing routes in Laravel 4
Problem solved. Regardless of the table name that will be used for user login, the class Auth will always have a method user(), which will allow access to the login table properties, which in my…
-
0
votes2
answers343
viewsQ: Securing routes in Laravel 4
after logging in the user system I would theoretically have to have some protected routes, how do I do that? In my case is returning error. Look at: Routes.php Route::group(['before' =>…
-
0
votes3
answers1570
viewsA: Laravel Log In Error
Problem solved. An important point, initially I tried to authenticate with decrypted password, it returned false, this occurs pq internally the method attempt() calls the hash check natively…
-
-1
votes1
answer252
viewsQ: Header PDF by Javascript/jQuery
How to pass the PDF header through Javascript/jQuery? I need to print a page, IE, when the user accesses it, it already sends the PDF header and sends it to download. How to do this by JS?…
-
0
votes3
answers6202
viewsA: Pass View Variable to Controller
In the controller you can recover the values as follows: POST $this->input->post('Campo'); GET $this->input->get('Campo'); With this you can manipulate the results received from the view…
-
2
votes3
answers1570
viewsQ: Laravel Log In Error
I’m having trouble logging in Laravel. See, it does not log the user, but also does not return error: auth.php return array( 'driver' => 'eloquent', 'model' => 'Cliente', 'table' =>…
-
0
votes2
answers2536
viewsQ: Laravel - Accessing absolute directory path for download
I created a directory within /public called /uploads/pdf. In this directory I keep PDF files from which I need to download. I created an AJAX request for this that calls an application controller…
-
1
votes1
answer1408
viewsQ: Pagination View return from Laravel/Paginate Array::make()
When I create a pagination manually, it is giving error, it does not create in the view the amount of exact elements as I determine. On my controller: public function getIndex(){ $fileClass =…
-
1
votes3
answers1822
viewsA: I cannot access object property. Laravel/Eloquent ORM
Access to protected property was not possible, so I had to make some modifications to be able to run. Well: In the controller I added the toArray method, so it returns me everything as array:…
-
1
votes3
answers1822
viewsA: I cannot access object property. Laravel/Eloquent ORM
Object returned if I access $f->fileServico, which is the relationship. Illuminate\Database\Eloquent\Collection Object ( [items:protected] => Array ( [0] => FileServico Object (…
-
4
votes3
answers1822
viewsQ: I cannot access object property. Laravel/Eloquent ORM
I cannot access the properties of the related object. Well, I have a class calling for FileClass, she has the following relationship with class FileServico: Fileclass.php public function…
-
3
votes1
answer759
viewsQ: Relationship in Laravel/Eloquent ORM
I have a problem. I need to return the values of a relationship, however, presents the following error: ErrorException Undefined property: Illuminate\Database\Eloquent\Collection::$fileServico My…
-
1
votes3
answers790
viewsA: Image upload problem Laravel/Intervention
I am grateful for all the answers, but I have solved them as follows: $filename = date('Y-m-d-H-i-s').'.'.Input::file('image')->getClientOriginalExtension();…
-
1
votes3
answers790
viewsQ: Image upload problem Laravel/Intervention
I have a problem when I try to upload an image, well, when I give Submit in the form it returns the following error: Intervention\Image\Exception\NotWritableException Can't write image data to path…
-
2
votes1
answer511
viewsA: Customizing permanent link directly in post does not work
For those who have the same problem I had, the resolution is simple. Simply change to Custom Structure: %postname%/%post_id% There, with that you can edit the Urls of the posts.…
-
0
votes1
answer511
viewsQ: Customizing permanent link directly in post does not work
When I make a post in Wordpress, has the option at the top to customize the permanent link, when I try to change this permanent link is not allowed, I work with some blogs in Wordpress and only one…
-
3
votes1
answer1085
viewsQ: Making specific table query of Wordpress?
How to make a query in Wordpress in a specific table, being it: wp_dd_spg_galleries? I already have the ID of the gallery, I tried to make this query, but does not return anything: $query = "SELECT…
-
-1
votes2
answers888
viewsQ: Free access in Wordpress directory to print images? . htaccess
I have a problem in Wordpress, I am uploading the images in a specific directory and I need these images to be viewed directly by URL. From the root of the portal there is a directory called server…
-
1
votes1
answer670
viewsQ: Problems with paging in Wordpress
I’m having a problem showing the pagination on a Wordpress page using WP-Pagenavi. The post_type "pronamic_event" exists on the seat and behind all the query items. I was able to identify that the…
-
1
votes1
answer179
viewsQ: Problem in SVG image. Event mouseenter(), Mousemove() and mouseleave()
I have a SVG image with the States of the Country and I need that when passing the mouse over a State, the image with the name of the State appears and follow the mouse. I’ve already made the image…