PHPackages                             itstudioat/spa - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. itstudioat/spa

ActiveLibrary[Framework](/categories/framework)

itstudioat/spa
==============

Initial Laraval Spa Installation

v0.3.3(10mo ago)074MITPHPPHP ^8.3CI passing

Since Apr 25Pushed 10mo ago1 watchersCompare

[ Source](https://github.com/ITStudioAT/spa)[ Packagist](https://packagist.org/packages/itstudioat/spa)[ Docs](https://github.com/itstudioat/spa)[ GitHub Sponsors](https://github.com/itstudioat)[ RSS](/packages/itstudioat-spa/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (5)Dependencies (12)Versions (29)Used By (0)

Laraval-Spa
===========

[](#laraval-spa)

[![Latest Version on Packagist](https://camo.githubusercontent.com/a4a4f8fa5a07237d2c848a15a05cf3215930d96cb6668cc75566e236aea8f854/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f697473747564696f61742f7370612e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/itstudioat/spa)[![GitHub Tests Action Status](https://camo.githubusercontent.com/69b3161154a49648b6d90a72e46d09496b1929f150e9e8c3e16c4b564f200778/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f697473747564696f61742f7370612f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/itstudioat/spa/actions?query=workflow%3Arun-tests+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/43e4207e84d8099d119407a16a97c5d818fc5c29c85c34a9f2562286c2aec3e1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f697473747564696f61742f7370612e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/itstudioat/spa)

What is Laravel-Spa
-------------------

[](#what-is-laravel-spa)

Laravel-Spa installs all necessary items for a fresh Laravel Single Page Application.

The installation uses next to laravel:

- Vue with Vue-Router as Javascript-Framework and routing
- Pinia as state store
- Vuetify as css-framework
- Sanctum as authentication-system for single-page-applications
- Vite for asset bundling

It provides:

- Login page together with a 'Unkown password' page and a Register page
- The login use a 2-factor-authentification (password an email), if the user has set 2-fa option

For the authenticated admins it supports

- Dashboard
- Users page, where all users are listed, may be added, changed or deleted
- Profile update with password change
- Logout

It integrates the Spatie roles and you can manage the role-based access to all web- and api-routes.

After installing this package, you can easily start to develop your own single page application with all necessary requirements.

Installation
------------

[](#installation)

### Install a new laravel project

[](#install-a-new-laravel-project)

```
laravel new new-laravel-app
```

### Make all necessary configurations

[](#make-all-necessary-configurations)

- .env

    - APP\_URL
    - DB-configuration
    - MAIL-configuration
    - SESSION\_DOMAIN='.localhost'
    - LOCALE-configuration
- config/app.php

    - timezone

### Create an empty database correspondig to the .env configuration

[](#create-an-empty-database-correspondig-to-the-env-configuration)

### Install this package and run the install-commands

[](#install-this-package-and-run-the-install-commands)

```
composer require itstudioat/spa
```

```
php artisan spa:install
php artisan spa:complete
```

Here you can enter your super\_admin User.

### Make important entries in some files

[](#make-important-entries-in-some-files)

**Change the config/cors.php file**

```
 'supports_credentials' => true,
```

### You may inividualize your logo for mails

[](#you-may-inividualize-your-logo-for-mails)

```
php artisan vendor:publish --tag=laravel-mail
```

**Change the file resources/views/mail/html/header.blade.php to:**

```
@props(['url'])

```

### Install your mailing system

[](#install-your-mailing-system)

If you use Postmark for mailing (i use it):

```
composer require symfony/postmark-mailer
composer require symfony/http-client
```

Permissions for routes
----------------------

[](#permissions-for-routes)

### Web-Routes

[](#web-routes)

Under routes/meta/web there is for each route.js-file a php-file. Here you may define, which route needs which (spatie-)roles. if the array is empty, no permission is needed.

With a simple command you can synchronize these files. The php-file is made actual with the route-js-file as basis:

```
    php artisan routes:sync
```

### Api-Routes

[](#api-routes)

Api-Routes may secured with the 'api-allowed'-Middleware followed from the allowed roles. In this example all users with the role admin may pass the apis

```
    Route::middleware(['auth:sanctum', 'api-allowed:admin'])->group(function () {
        ...
```

Usage
-----

[](#usage)

```
   php artisan serve
   npm run dev
   php artisan queue:work
```

### Sending E-Mails

[](#sending-e-mails)

That everything works fine, sending E-Mails must be configured. I use Postmark for Mailing and everything is fine. You can find more infos under Laravel/Notifications.

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Guenther Kron](https://github.com/itstudioat)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance54

Moderate activity, may be stable

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~2 days

Total

28

Last Release

318d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5013e81880966e56939592ab659714ec39719ef1d0782846641d2f7588498011?d=identicon)[ITStudioAT](/maintainers/ITStudioAT)

---

Top Contributors

[![ITStudioAT](https://avatars.githubusercontent.com/u/30023847?v=4)](https://github.com/ITStudioAT "ITStudioAT (272 commits)")

---

Tags

laravelSPAitstudioat

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/itstudioat-spa/health.svg)

```
[![Health](https://phpackages.com/badges/itstudioat-spa/health.svg)](https://phpackages.com/packages/itstudioat-spa)
```

###  Alternatives

[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k2.9M88](/packages/bezhansalleh-filament-shield)[lunarstorm/laravel-ddd

A Laravel toolkit for Domain Driven Design patterns

17959.0k](/packages/lunarstorm-laravel-ddd)[bezhansalleh/filament-plugin-essentials

A collection of essential traits that streamline Filament plugin development by taking care of the boilerplate, so you can focus on shipping real features faster

27584.7k16](/packages/bezhansalleh-filament-plugin-essentials)[vormkracht10/laravel-mails

Laravel Mails can collect everything you might want to track about the mails that has been sent by your Laravel app.

24149.7k](/packages/vormkracht10-laravel-mails)[jonpurvis/squeaky

A Laravel Validation Rule to Help Catch Profanity.

706.0k](/packages/jonpurvis-squeaky)[daniel-cintra/modular

A fast way to develop web apps using Laravel, Vue and Inertia.

1763.8k1](/packages/daniel-cintra-modular)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
