Tag Archives: Laravel

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

Laravel-mix and the spread operator

Posted in Quick tips on November 17, 2017

Out of the box, the excellent Laravel-mix package does not support the use of the ES6 object spread operator. Here is a quick tip which enables it in your project. Very usefull in combination with Vuex/ Redux implementations in which you often want to quickly clone an object.

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

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

Validation of requests in Laravel

Posted in PHP on November 6, 2015

In most websites or webapplications, users are allowed to fill in some forms of which the data should be stored in a database. For example, if a new order is placed in a webshop, or a new account is created, the data entered by the user should be stored. It’s essential to validate this user input before actually saving it. Laravel has a build-in validator class to make this an easy job.

Read more

Optimizing CRUD operations: inserting data into a database

Posted in PHP on September 25, 2015

In many applications, create-read-update-delete (CRUD) operations are common tasks that are regularly performed. To optimize your workflow and keep your code clean, it is a good idea to generalize these operations. When you build a webapplication from scratch, you likely have written some wrapper functions for this purpose, but when you are using Laravel, a lot of nice features are available out of the box. In this blog, we focus on the creation of new records and the modification of existing ones.

Read more

Web application development using Laravel

Posted in Development on November 12, 2014

We love to build websites, webshops and web applications using Laravel. The framework handles all the features that are common between applications, so we can focus on what’s important: the application itself. There are many aspects related to web application development using Laravel and here, we provide an overview of posts we wrote on this subject.

Read more