Problem I am trying to build a database structure for a time punching system. What I’m trying to figure out […]
Tag: laravel
Laravel controller for a grocery list
Problem What I have is a grocery list. Once I select a grocery by ticking the checkbox, I can select […]
Laravel 4 clean code review of users controller and model, trying to maintain MVC structure
Problem I’d like you to review my attempt at creating an authorization class and let me know if there is […]
Generating statistical reports
Problem I want to generate statistical reports and I have many different where clauses so the function became long. I […]
Laravel UserController Design
Problem <?php namespace AppHttpControllers; use IlluminateHttpRequest; use AppUser; use Auth; class ProfileController extends Controller { public function __construct() { $this->middleware(‘auth’); […]
Get users that are presidents and compute their name
Problem I have a user table like this id | firstname | surname | title 1 | Bob | Batman […]
Retrieving a message from a cryptocurrency daemon
Problem The objective of this piece of code is to get a message from a cryptocurrency daemon through RPC and […]
Check if relations exists for a parent node before deleting it so that we don’t have any orphan child node
Problem Here I am trying to delete a parent node but only if it doesn’t have any child node. Please […]
Laravel routes/controller
Problem I’m a clean guy when I code and I don’t like typing the same thing over and over again, […]
Login using two-factor authentication
Problem I want to make the code below prettier but I don’t know what to change and how to change. […]