Download the PHP package sakib-1996/auth-admin without Composer

On this page you can find all versions of the php package sakib-1996/auth-admin. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package auth-admin

Auth Admin for Laravel

A self-contained Laravel package that provides authentication (login, register, logout) and a Tailwind CSS admin dashboard UI.

Requirements

Installation

Install via Composer:

Build and publish frontend assets:

This command runs npm install, npm run build inside the package, and copies compiled assets to public/vendor/auth-admin.

Optional: publish config

Optional: publish views for customization

Published views are placed in resources/views/vendor/auth-admin.

Usage

After installation, the following routes are available (default prefix auth-admin):

Method URI Name
GET /auth-admin/login auth-admin.login
POST /auth-admin/login
GET /auth-admin/register auth-admin.register
POST /auth-admin/register
POST /auth-admin/logout auth-admin.logout
GET /auth-admin auth-admin.dashboard

Visit /auth-admin/login to sign in.

Configuration

Configuration file: config/auth-admin.php (optional, publish first)

Option Default Description
route_prefix auth-admin URL prefix for all package routes
middleware ['web'] Middleware stack applied to package routes
guard web Authentication guard
user_model null User model class (falls back to auth.providers.users.model)
users_table null Users table name (falls back to model table)
redirect_after_login auth-admin.dashboard Route name after login
redirect_after_logout auth-admin.login Route name after logout

Using your existing User model

By default, the package uses your application's User model from config/auth.php. No extra setup is required if you already have a standard Laravel users table with name, email, and password columns.

Ensure your User model hashes passwords, for example:

Blade components

Component Description
<x-auth-admin-guest-layout> Guest layout for login/register
<x-auth-admin-layout> Admin dashboard layout
<x-auth-admin-input> Reusable form input with validation errors
<x-auth-admin-sidebar> Sidebar navigation
<x-auth-admin-navbar> Top navigation bar

Screenshots

Troubleshooting

Assets not loading

Run:

Ensure public/vendor/auth-admin/app.css and app.js exist.

Route [login] not defined

This package uses auth-admin.login, not Laravel's default login route. Protected package routes use auth-admin.auth middleware which redirects to the correct login route automatically.

Registration fails

Verify your users table exists and your User model has name, email, and password in $fillable (or uses #[Fillable]).

npm build fails

Ensure Node.js 18+ is installed and run the install command from your Laravel project root.

Upgrade guide

1.0.0

Initial stable release. Requires running php artisan auth-admin:install after install or upgrade.

Development

License

MIT © Abdullah Mohammad Sakib. See LICENSE.


All versions of auth-admin with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
illuminate/auth Version ^11.0|^12.0|^13.0
illuminate/console Version ^11.0|^12.0|^13.0
illuminate/database Version ^11.0|^12.0|^13.0
illuminate/filesystem Version ^11.0|^12.0|^13.0
illuminate/routing Version ^11.0|^12.0|^13.0
illuminate/support Version ^11.0|^12.0|^13.0
illuminate/validation Version ^11.0|^12.0|^13.0
illuminate/view Version ^11.0|^12.0|^13.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package sakib-1996/auth-admin contains the following files

Loading the files please wait ...