Creating an admin interface for subscriptions

In this section, I will cover making a place for an admin user to come in and see reports about members. This will need some seed data, as I will attempt to show the membership statuses in one place.

We will aim for something as follows:

Creating an admin interface for subscriptions

Getting ready

If you have not followed this far, then you will need at least a base Laravel installed with the cashier and auth setups.

How to do it…

  1. Set up a route for the admin dashboard:
    How to do it…
  2. Make a controller for the route:
    >php artisan make:controller AdminMembershipsDashboardController ...

Get Laravel 5.x Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.