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.
ReadFor 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!
ReadPolicies 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.
ReadFrom 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