Serverside language we use to build magnificent webapplications. With Laravel, a new era for PHP has come. We love to explain our newest insights on Laravel.

Handling cron jobs in Laravel

Posted in Development on April 14, 2021

Setting up cron jobs is easy in Laravel, since it has a build-in task scheduler. One of the main advantages of this task scheduler is that you only have to set one cron job on your server. Once this is done, everything will be handled by Laravel. In this blog we describe how to handle cron jobs in Laravel.

Read more

A scalable server setup using Laravel Forge and Envoyer

Posted in PHP on March 13, 2020

New projects often start small and a single server taking care of everything is just fine. However, as successful applications grow in time, a more scalable setup may be required. In such a setup you use dedicated servers for the application itself, database, caching and queues and use a load balancer to divide traffic between the application servers. Each server can then be optimized for its own needs.

Read more

Using WordPress as API for Laravel (2) – Connecting Laravel to WordPress

Posted in PHP on May 8, 2019

This is the second post on using the WordPress as API for a Laravel application. We describe how to setup the authentication, so that Laravel can retrieve the posts and pages created in WordPress. We use this setup in a project that was originally created in WordPress. It already had a lot of content, and also for new posts WordPress was the prefered choice, because of its great features to manage posts, revisions, comments and images. At the same time, Laravel is our prefered choice to build the custom features of the project, because of its great flexibility.

Read more

Running queues for multiple applications on the same server with Laravel Horizon

Posted in Development on April 3, 2019

Queues are an essential part of modern web applications. By handling long running processes as background tasks, apps become much faster and your users get a better experience. Examples are sending emails, processing file uploads and generating documents. With Laravel Horizon it’s easy to manage queues. Setting up horizon is easy. However, I ran into some issues when I tried to run Horizon for multiple apps on the same server. In this post I’ll describe how to fix them.

Read more

Using WordPress as API for Laravel (1) – WordPress setup

Posted in PHP on February 28, 2019

Nowadays, we mainly build custom websites, webshops and web apps using Laravel. Many of those websites have info pages or blog posts where the administrators want to be in charge of the content. How do we achieve this? We tried different wysiwyg editors, but it turned out that the functionality was too limited. Then we started thinking about WordPress, our framework of choice in the past. It has a great admin panel for maintaining content pages or a blog.

In this post we discuss how to use WordPress as a headless CMS and combine it with the flexibility of Laravel to build custom websites and web apps.

Read more

Building a basic admin panel using Laravel (3) – Authorization

Posted in PHP on July 19, 2018

This is the last part of a blog series on building a basic admin panel. Although there are many admin packages available, including Laravel’s own Spark package, we experienced that it’s also very easy to an admin panel yourself. We defined three major topics that are found in all admin panels that we have build. We started with the authentication of users (part 1) and continued with basic CRUD operation (part 2). In this third part the focus is on authorization: in an admin panel there are often users with different roles. Each user role may have access to different parts of the admin panel and is allowed to perform specific actions.

Read more

Building a basic admin panel using Laravel (2) – CRUD

Posted in PHP on July 19, 2018

Admin panels are an essential part of many web apps and online platforms. Although there are many admin packages available, including Laravel’s own Spark package, we experienced that it’s also very easy to create an admin panel from scratch. The main advantages: you know every detail of the admin panel and once the project is growing and more functionality is required, it can be easily extended. In the second part of the series on building your own basic admin panel we focus on CRUD operations.

Read more

Building a basic admin panel using Laravel (1) – Authentication

Posted in PHP on July 19, 2018

Many web apps and online platforms need some kind of administration panel to manage the their public parts. Only a limited number of users with a specific role or privileges have access to this admin panel. Examples include a webshop, hour registration tool, cooking website or a blog.

To build such an admin panel you have several options. We have build a lot of administration panels and the PHP framework Laravel came out as our favorite. For Laravel, several admin packages are already available, including the offical Spark package. However, we experienced that Laravel itself already has so much features to quickly build a basic admin panel yourself that a package isn’t always needed. In this blog series, we like to share our approach.

Read more

Customizing emails in Laravel

Posted in PHP on November 27, 2017

How do you customize the default password reset email in Laravel? In this blog, we describe the process of creating mailables, apply them to your own emails and finally customizing the ‘password reset emails’ that are included in the authentication scaffolding of Laravel.

Read more