Extra

Requesting data from the DVLA

I initiated the integration of DVLA's Vehicle Enquiry Service (VES) API into my application by obtaining the necessary API key. Following this, I explored the API documentation and implemented a PHP example from the DVLA's documentation.

Read
Models

Search Motorbikes Functionality

For the search functionality, I decided to watch the Laracast videos on search rather than trying figure it out from the documentation. And I was surprised how easy this was to do!

Read
Policies

Creating a Motorbike Policy

Policies are classes are used to handle authorisation checks related to Eloquent models. I will be making a policy for Create, Read, Update and Delete (CRUD) operations on the motorbikes table.

Read
Controllers

Creating Adminstrative Rights

From reading the Laravel Middleware documentation, the initial setup involved creating the middleware file, `php artisan make:middleware AdminMiddleware`, which created the file in `Http/Middleware/AdminMiddleware.php`, and implementing logic to ensure a user had admin privileges.

Read