Posts by Isaias Lima • 606 points
25 posts
-
1
votes2
answers1306
viewsA: Check if there is a key in the/json array
When you make a $jsonObj = json_decode($json) PHP already turns $json into an array, so you can do a simple logical test, like if(isset($jsonObj['Autenticacao']))
phpanswered Isaias Lima 606 -
0
votes1
answer138
viewsQ: Laravel environment with multi login
I have a personal project that I would like to make available to some companies, but each company must have its own login, so the login screen should have the following address:…
-
3
votes2
answers145
viewsA: Recovering string JSON value
In PHP, the functions json_encode and json_decode are used to work with json. In your case json_decode will turn the received text into an array, making it easier to handle: $array =…
-
0
votes1
answer230
viewsA: How to pass information chosen in the combobox to the database?
From what I see in your code, the Specialty select does not have the name attribute, and in PHP you are searching with a different name that is in HTML. Include the name attribute in select and call…
-
2
votes1
answer269
viewsA: Exception url in Laravel token?
I found a solution that worked. Follow the code of the class VerifyCsrfToken: class VerifyCsrfToken extends BaseVerifier { /** * Handle an incoming request. * * @param \Illuminate\Http\Request…
-
1
votes1
answer269
viewsQ: Exception url in Laravel token?
In my project I need to release a url for a service rest I’m implementing, only I’m not getting to make the exception of token for this route, since I will not receive you in the service. In the…
-
1
votes3
answers753
viewsQ: CPF Regex with Laravel
The system where I am doing maintenance has Cpfs registered in two ways, with and without score, due to a bad development start that did not impose a standard. The problem is that the CPF cannot…
-
2
votes1
answer976
viewsQ: Project copy without installation of Laravel Framework
Is it possible to copy an Laravel project to a server without having to install Laravel on that server? Just copy the files or I have to make some additional configuration, besides pointing the DNS…
-
3
votes1
answer144
viewsA: Send Command variable from Laravel Controller
I was able to find out the call to command can be made by sending the variables (arguments) as an associative array, as suggested by Juniornunes \Artisan::call('syncustomer:sav', array('data' =>…
-
3
votes1
answer144
viewsQ: Send Command variable from Laravel Controller
Today I call a command for controler perfectly, but I would like to send variables as well. In controller, call the command that way: \Artisan::call('syncustomer:sav'); The name attribute of the…
-
5
votes2
answers2039
viewsQ: File extension in Base64
I am doing a REST service and I need to receive an image by Base64, except that the image can come with any extension, as jpg, png, gif, etc. How to identify this extension and proceed with…
-
0
votes1
answer634
viewsQ: Route without authentication Laravel
Good morning I need to free a REST service on a system with authentication, in Laravel 5.1, so when I access the REST address in a place that is not authenticated, it asks to enter login and…
-
0
votes1
answer62
viewsQ: Align DIV dynamically like a stained glass window
Good afternoon I’m on a personal project and one of my inspirations is the Google Keep layout, where the Divs line up and fit together as if they were forming a stained glass window. I did some…
-
1
votes1
answer50
viewsQ: Mailchimp return amount in PHP
Good morning I’m using a script to return members from a list in Mailchimp’s API 3.0, using Curl in PHP, but only returns 10 members. Are there any options I can include to increase this amount?…
phpasked Isaias Lima 606 -
1
votes1
answer46
viewsA: Downloading emails from Mailchimp
I figured out how to download the emails. It is necessary to use the CURL library to access version 3.0 of the API that Mailchimp provides. Below is an example: $apikey = 'sua_api_key'; $listid =…
phpanswered Isaias Lima 606 -
0
votes1
answer46
viewsQ: Downloading emails from Mailchimp
Good afternoon I am doing an integration of Mailchimp with PHP and I need to download from Mailchimp the emails that are like "unsubscribed" and "cleaned" to update in the bank. Currently there is…
phpasked Isaias Lima 606 -
0
votes1
answer1030
viewsQ: Composer update problem - Laravel
Good afternoon to all I am trying to install a package by Composer on the Laravel, and by typing "Composer require Bert/ldap-Authenticator" it does the installation, but produces the following…
-
0
votes0
answers159
viewsQ: How to do LDAP authentication on Laravel
Good morning I need to change the authentication method from Laravel to LDAP in my company, but I have no idea where and how to proceed with the changes. I did some research and couldn’t find…
-
3
votes2
answers1059
viewsA: I cannot return the authenticated user in Laravel
I found out what’s going on! I am following the documentation of the site, which I found is in version 5.0 and my Laravel is in version 5.2.12, because I had recently updated. The method to do…
-
3
votes2
answers1059
viewsQ: I cannot return the authenticated user in Laravel
Good morning In my project, I do the standard authentication provided by Laravel 5, hence it directs to my home usually when logging in. I know that logged in normally because when I put wrong data…
-
1
votes1
answer2091
viewsQ: PHP Artisan command does not work
There was a demand in the job where I had to take an Laravel 5 project from a client and start changing it. I had some problems at the time to put to run, but now it is going, except for the command…
-
5
votes4
answers444
viewsQ: Mark contacts/hashtag in typing text with javascript
Good morning In my current project, I need to mark individual contacts and/or hashtags in the text, while the same type For example, when typing '@' and the first letters, javascript recognizes that…
-
2
votes3
answers2617
viewsA: Put div in the background
Have you tried the Divs z-index? In css #div1{ z-index:20; } #div2{ z-index:30; } This positions one over the other. The largest number positions the div over…
cssanswered Isaias Lima 606 -
1
votes1
answer359
viewsQ: Relating various data from one table to another with SQL
I needed to list, with SQL, a person’s father, mother and spouse along with their general data (e.g.: name, address, telephone, email, father, mother, spouse, status). This data is in another…
-
8
votes1
answer1129
viewsQ: Long Polling performance with PHP, Mysql and Ajax
I’m developing a site in PHP, and using Long Polling techniques for real-time notifications. I’m making the script wait 50 seconds for an answer, and not getting one, in 2 seconds it comes back to…