Sign in

Hi All, this is Adi, again with another Laravel blog post. This time I wanted to share my solution to loading custom settings from a JSON file into Laravel’s config. Firstly what’s the use case for this, there was a client project, where they had a huge list of configurations in a JSON file and I had to use them in the code. …

Hi all, this is Adi, again with another Laravel post. In one of my recent projects, I had to set up specific subdomain routing within the same Laravel application. This was something new to me because on most projects, I just work with one domain and everything is accessed / after it. I am going to share with you how I solved it, I hope it gives you some ideas when you are faced to do this too. Let's get started.

What was my need

First, let’s explore my requirements for this project. My client wanted to access the admin portal from the admin.myapp.com

Hi All, this is Adi, with another Laravel article. I wanted to take some time to explain what Laravel’s Helper methods are and how your can create your own ones. I was never a big fan of creating my own customer helper methods when I started with Laravel, but with time, I have started using them more often and these days there’s no Laravel project without customer helpers.

Let’s get started.

What are Laravel Helpers

Laravel Helper methods are “plain old” PHP functions, that you can call from any part of your Laravel Application. You may have already used a lot of Laravel’s built-in…

Hi all, this is Adi again for a Laravel post. I recently found a lot of questions on StackOverflow asking what Laravel Resource controllers were. I wanted to explain this basic concept. Read on.

Laravel Resource Controller

Resource controllers are just Laravel controllers with all the methods to create, read, update and delete a resource (or a Model). You can create a resource controller with this artisan command

php artisan make:controller PhotoController --resource

This command will create a PhotoController.php in your controller directory and will have automatically created 7 methods index, show, create, store, edit, update, destroy. All these methods will be empty…

Hi All, I have some great news about Simplest Web. I’ve decided it’s time to take my freelance efforts to the next level, find an office space to work from. It was one of my goals for 2020 to find an office for Simplest Web. This goal came true sooner than I expected. It was in December when I had the thought that it might be time to up the scale of my Software Development Services.

So far, I had been working from home and having client meetings at cafes. It was and still can be sufficient for the work…

Hi All, I am back with a different kind of recap of last year (2019). I recently published a lengthy recap of how my year was, then I had this idea to summaries the year in a bunch of numbers. These are the stats that mean something to me and are ones I would like to compare to sometime in the future.

Call this self-obsession, math nerdy, number porn or whatever, my analytical brain sees the world in numbers and these are the number that summarizes how I have done in 2019, I think.

Some of these numbers even shocked…

Hi all, this I Adi. 2019 has been a wonderful year for me, so I just wanted to take a moment to reflect and document what’s changed for me since 2018. In this post, I wanted to talk about how various aspect of my life has seen a change and also note some goals for the upcoming year.

Freelancing

This year, I have had the chance to meet a lot of new people, of who a few of them turned into my clients. I’ve worked on 7 new projects and are in talks with a bunch more. I finally have gotten…

Introduction

Hi all, this is Adi. Today, I wanted to share with you my experience of how I set up Tailwind CSS with Parcel Bundler, if this interests you continue reading.

I am a long time fan of Bootstrap since version 2, I have used it on nearly all my projects. Bootstrap 4 introduced many new utility classes that have made my life a little easier and my markup more readable. But lately, I have been hearing so much about the brand new CSS framework named Tailwind CSS. I am quite confident that you might have heard about it as well…

Hi All, this is Adi with another Laravel tutorial. This time, I wanted to cover my basic solution to a problem we might all have when building web apps using only blade templates.

Let’s take this example scenario and explore possible solutions. We have an index method on let's say UsersController which lists all the users from our database. Each user has a Subscription and we want to change their subscription. How would you go about doing this with pure blade templates? There are multiple solutions to this, one would be to show a different page where we can select…

Hi All, this is Adi again with a Laravel related article. This time in a shorter format. As Laravel developers we need a way to back up our app’s databases somewhere for both save keeping the data and for analysis. I want to share with you a simple solution that I have devised for some of my smaller projects. I have tested this method only on MySql DB and on a VPS, but I think it’s pretty much the same for any database.

TLDR;

The outline of my solution is as follows. There’s an artisan command which handles the backup, that…

Adi

I am a freelance web and mobile developer. More about me at https://simplestweb.in

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store