All Questions
11 questions
0
votes
1
answer
265
views
PHP - Importing columns from uploaded CSV file to SQL database (Laravel 5.7) [closed]
The goal is to upload the columns from the csv into the SQL Pro database. I am able to select the column names that have been uploaded from the csv file, the columns from the csv file are then ...
1
vote
1
answer
123
views
Appending objects to an array based on a field
I am working with PHP5 (Laravel 5.1), and I couldn't optimize my function, which takes more 4 minutes turning, and fails in the end when I have a huge data (around 6500 rows, but working when i test ...
2
votes
1
answer
142
views
Retrieving a message from a cryptocurrency daemon
The objective of this piece of code is to get a message from a cryptocurrency daemon through RPC and extract the transactions object to pass it to the view. Is there a simpler / less ugly way of doing ...
6
votes
1
answer
294
views
A Search Engine Class
I've built a Search Engine class for a website that permits to search companies in base of their locations and their categories (companies pay a plan to be found in the places that they will).
In the ...
0
votes
1
answer
98
views
Authorizing users for POST requests
I've to authorize some users to do POST requests from their CMSs in order to create a new resource on my database. I've to send a JSON response containing the status of the response (successful or not)...
1
vote
1
answer
145
views
Calculating a quality score of something based on attributes
I'm willing to have a way to calculate a quality score of an object; in this case an addressbook contact.
I believe there are way better approaches to do this and I'd like to hear your references.
...
3
votes
1
answer
158
views
Class that generates records after performing business logic
I wrote a small class that does a database lookup and it generates a collection/Array. The Collection is resorted based on values returned from the database. Finally, the records can be retrieved ...
6
votes
2
answers
1k
views
Routing for a Laravel 5 e-commerce site
I am new here and learning Laravel 5 on my own. I want to get reviewed on the following routes.php code.
My question are:
Have I made any mistakes by doing this? If yes, then what could be the ...
3
votes
1
answer
1k
views
Laravel controller for a commenting system
Can someone review my Controller? I should follow these guidelines:
Code should be written with MVC pattern and to use OOP.
The code now works fine, but I need to improve it. Also, should I use more ...
1
vote
1
answer
3k
views
Product page filter
I am still learning Laravel and I am in the process of creating a small shopping website.
On the left hand side there are a series of filters that appear depending on what products have come back ...
3
votes
0
answers
887
views
Laravel Testing: Is this testing too much of the inner workings?
So I'm using laravel for a project and have a InvoiceRepository and a InvoiceRepositoryTest and I have written the test first ...