Check Current Route and URL

January 31, 2021

Building navigations we need to highlight the active item. Checking for the current route and URL can be done in Laravel in a few different ways.

Laravel Wildcard Domains

January 30, 2021

When building modern multi-tenancy Laravel applications, such as SaaS, you might want each client to pick their custom subdomain.

How to Access ENV Variable in JavaScript and Sass

January 30, 2021

Recently we faced an issue with our CDN and environments, we needed both our online staging and production assets to be stored to their respective CDN paths. In order to this, we had to figure out how to access ENV variables in JavaScript and Sass files by passing them through Laravel Mix.

December 4, 2020

You are building a SaaS and each customer can add users, but users can only be added once, hence we want unique emails. However, the email must not be unique for all customers therefore we have to make this rule: For each unique customer id, all emails must be unique.

August 14, 2020

Automated tasks has existed on many platforms for a long time. The purpose can be many, but in web applications it’s often to optimise speed for the user on heavy duties by caching results. It can also be used to perform various maintenance tasks to easen administration. You can think of Windows Update that runs …

July 30, 2020

In this guide I will be guiding you through the basic concepts of defining a base layout in Laravel using Blade templates. I will share with you how I after years of working with Laravel choose to structure my layouts. We will be creating our example using Bootstrap, so you have something to continue with …

November 12, 2019

A useful feature for setting up your application fast is using the seeders, especially for testing and developing it’s great to have data to work on with just 1 command. A problem for me though was that if I seed users with a password it would mean I either have to store the passwords in …

November 8, 2019

I have lately been facing an issue where my artisan outputs a lot of strange characters such as ?[32m. It seems to be an issue with the latest Laravel. Until now I have managed to read around it, but it still annoyed me. Finally today I found the solution in this thread: Solution As …

Store Laravel Uploads Off-Site in the Cloud

November 5, 2019

How to benefit from storage APIs such as AWS S3 or DigitalOcean to improve storage of your files. Both backups but also security.

October 24, 2019

You are probably already using Laravel when you read this, that means you are already using Packagist too, but might not be aware of it. In this guide you will learn how to deploy your own Laravel packages to Packagist. Packagist is the platform behind Composer acting as the library. When you are searching for …

  • 1
  • 2