adygcode/blade-sanctum-kit

A Laravel Blade Template with Sanctum Authentication built in

Maintainers

Package info

github.com/AdyGCode/blade-sanctum-kit

Language:Blade

Type:project

pkg:composer/adygcode/blade-sanctum-kit

Statistics

Installs: 45

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

1.1.0 2026-03-09 06:49 UTC

This package is auto-updated.

Last update: 2026-03-10 09:06:36 UTC


README

A Laravel Blade Template with Sanctum Authentication built in.

Based on the Blade & Breeze Starter Kit provided with Laravel versions before Laravel 12.

Primarily used for teaching purposes at North Metropolitan TAFE.

Built With

PHP Laravel Livewire Inertia Sanctum Tailwindcss

Editor of choice

PhpStorm JetBrains

Repo Stats

Forks Issues Educational Community Licence

(🔝 Back to top)

Description

A starter kit for Laravel based on Laravel's Blade templating engine, TailwindCSS v4, HyperUI components and FontAwesome Free icons.

It contains three sections:

  • Web:
    • Static Layout, Controller and Pages
  • Client:
    • Authenticated User Layout and Pages
  • Admin:
    • Administration Layout, Controller and Pages

The project is developed as a re-write of the "Retro Blade Kit" and "Base Blade Kit" also by Adrian Gould.

It provides a base template for the creation of a "SaaS" style application, omitting sections that may tie to a specific vendor such as a payment system.

(🔝 Back to top)

Table of Contents

Installation

Remember to run composer install, php artisan migrate, php artisan key:generate to make sure a key is generated, all tables are created, and packages correctly installed.

Alternatively, you may use composer setup to install all packages, set a key, migrate and other common Laravel setup steps (using pnpm for Node.js package management). Using composer setup-npm will perform the same process but using npm for package management.

Via Laravel Herd

One-click install a new application using this starter kit through Laravel Herd:

Install_with_Laravel_Herd

Via the Laravel Installer

Create a new Laravel application using this starter kit through the official Laravel Installer:

  laravel new my-app --using=adygcode/blade-sanctum-kit

to use PNPM in place of NPM use:

  laravel new my-app -pnpm --using=adygcode/blade-sanctum-kit

To install with Pest, PNPM, Livewire, initialise a git repo, SQLite, ... (Typed in on a single command line):

  laravel new my-app --pnpm --git --database=sqlite \
    --pest --using=adygcode/blade-sanctum-kit 

In either case, you must replace my-app with the name of your project, using kebab-case. For example duck-quack-paddle.

(🔝back to top)

Post setup

The steps for post installation will depend on if you are a student.

What is .env.dev?

We provide a .env.dev file to use as a starter point for the application when developing.

This is because we have a setup script we execute for testing our student submissions that uses this file, and executes steps to install the packages from scratch, set up a database (usually MariaDB or MySQL), set up the MAIL configuration to use Mailpit, run migrations and seeders, and more.

Finishing the Set-up

Remember that app-name is the name of the application you used when creating the project. It will be replaced by the project's name, for example my-big-laravel-app.

Switch into the project folder:

cd app-name

Execute the following steps to configure your development environment:

cp .env.dev .env
php artisan key:generate
php artisan migrate:fresh --seed

At this point you should be able to execute the development server.

Development Servers

We have expanded the default composer run scripts provided with Laravel.

We have included:

  • dev for general use, no MailPit
  • dev-win for windows users, with MailPit
  • dev-linux, for macOS and Linux uses, with MailPit and Log Watching
Dev

Executes three scripts in parallel using the concurrently package.

  • php artisan serve
  • php artisan queue:listen --tries=1
  • npm run dev
composer run dev
Dev-Win

This is for Windows users who are not using WSL or Docker.

Executes four scripts in parallel using the concurrently package.

  • php artisan serve
  • php artisan queue:listen --tries=1
  • npm run dev
  • mailpit --smtp=0.0.0.0:2525
composer run dev-win
Dev-Linux

This is for Linux and macOS users.

Ensure you have installed MailPit and Pail on your macOS/Linux system.

Executes five scripts in parallel using the concurrently package.

  • php artisan serve
  • php artisan queue:listen --tries=1
  • npm run dev
  • mailpit --smtp=0.0.0.0:2525
  • php artisan pail --timeout=0
composer run dev-linux
PhpStan

PHPStan is a static analysis package for PHP. It has been wrapped for Laravel use.

Installation details are in the Extending Kit section.

The command executes:

  • phpstan analyse --memory-limit=2G
composer run phpstan

(🔝 Back to top)

Extending Kit

If you wish to add packages for further functionality, then follow the usual documentation from each of their sites.

Dev Prod Item Purpose
✔️ ✔️ Livewire Laravel based dynamic pages with minimal JS
✔️ ✔️ Spatie Permission Roles and Permissions
✔️ ✔️️ Telescope Application performance tracking and debugging. May be resource usage heavy
✔️ DebugBar In browser debug bar
✔️ Laradumps Debugging without dump and die
✔️ Larastan Static analysis of code
✔️ Pint Opinionated code formatting

Installation of Packages

After completing an installation with the starter kit, you may want to update or add extra packages.

Updating is always a good idea before getting into the development process. And it should also be completed whilst development is progressing, but never on the main branch.

Adding additional packages will occur, usually as the development process is completed, again never on the main branch.

When updating or adding any package make sure you immediately run your tests to make sure nothing has got broken in the upgrade/addition process.

Static Analysis for Laravel

Use during development.

composer require larastan/larastan --dev

The project has a base phpstan.neon configuration file in the project's root folder.

Pint Opinionated Code Formatting and Linter

Use during development

composer require laravel/pint --dev

Laradumps

Use during development only.

composer require laradumps/laradumps --dev

Debug Bar

Use during development only.

composer require barryvdh/laravel-debugbar --dev

Telescope

To use during development only:

composer require laravel/telescope --dev

If you wish to use this for development and production, remove the --dev:

composer require laravel/telescope

Livewire 4.0 BETA

composer require laravel/livewire

Spatie Permission

composer require spatie/laravel-permission

(🔝 Back to top)

Updating Packages

If you wish to make sure that the basics are complete, and upgrades are also completed then the following may assist...

Dry Run Updates

Before doing so, do a dry run to see what is updated:

composer update --dry-run
npm update --dry-run

Composer Package Updates

Afterwards, you may update individually using commands such as those below:

composer update laravel/laravel
composer update laravel/sanctum
composer update --dev roave/security-advisories:dev-latest
composer update --dev laravel/breeze
composer update --dev laravel/pint
composer update --dev pestphp/pest
composer update --dev pestphp/pest-plugin-laravel

Or you may attempt a complete update using:

composer update

Node.js Package Updates

We have shown how to check for updates to the Node.js packages, and likewise you may update all the packages using a single command:

npm update

(🔝 Back to top)

Screenshots

Below are sample pages from the kit.

General Welcome/Home Page

Product Screenshot Welcome Page

Authenticated User Dashboard

Product Screenshot Authenticated User Dashboard

Admin Dashboard

Product Screenshot Admin Dashboard

About Page

Product Screenshot About Page

Privacy Policy Page

Product Screenshot Privacy Policy Page

(🔝 Back to top)

Tests

TBD

(🔝 Back to top)

Credits

This template is built using:

(🔝 Back to top)

Contact

Adrian Gould: Lecturer (ASL1), North Metropolitan TAFE, Perth WA, Australia.

(🔝 Back to top)

Licence

The Laravel "Blade with Sanctum" Starter Kit is open-sourced software licensed under the MIT license.

(🔝 Back to top)