Leonie Derendorp

Webdeveloper and co-owner of PLint-sites in Sittard, The Netherlands. I love to create complex webapplications using Laravel!

About Leonie Derendorp

Webdeveloper and co-owner of PLint-sites in Sittard, The Netherlands. I love to create complex webapplications using Laravel!

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

Transitions in Vue

Posted in Javascript on September 28, 2017

Transitions are essential when you want to create an intuitive user interface. When using Vue, transitions are easily integrated in your application. Here we discuss a use case of one of our own projects.

Read more

Eloquent relations in Laravel

Posted in PHP on July 25, 2016

One of the powerfull features of Laravel are the eloquent relations. They make it easy to retrieve and store relevant information from a database without writing complex queries. In order to use the eloquent relations, one has to correctlty set up the database and define relations in the corresponding models. This blog post explains how to achieve this.

Read more

Accessors and mutators in Laravel

Posted in PHP on May 30, 2016

A common issue when building a webapplication is the case where you want to display variables in a different format than they are stored in your database. For example, dates are by default stored as yyyy-mm-dd, but in the Netherlands dates are written as dd-mm-yyyy. Or maybe you stored the names of your users in lowercase, but you would like to show them with a capital. For those kind of situations, the accessors and mutators of Laravel are of great use.

Read more

Validation of user input with a request in Laravel: authorization

Posted in PHP on May 19, 2016

Validation of user requests is an essential part of every web application. Part of the validation process is a check whether the user input has the correct format. Is the email address entered by the user really an email address? But there is more. We have to make sure that the user who is doing the request, is actually allowed to do this. With the authorization methods of Laravel, it’s easy to set this up.

Read more

Protect your images in Laravel

Posted in PHP on April 18, 2016

For many websites, it’s common to display images that are uploaded by users. Often the images are available to all other visitors of the website, but sometimes you want to protect the image files. For example, you want people to first create an account before they are allowed to view certain content. How can this be achieved in Laravel?

Read more

Laravel’s view composers

Posted in PHP on November 23, 2015

With the view composers of Laravel, it’s easy to extend your master view with dynamic information. For example, your website has a topbar in which you would like to show a message to users that are logged in (welcome firstname lastname) or you want to show the contents of the user’s shopping cart. A view composer provide these possibilities in a very clean way.

Read more