Vanguard - Advanced PHP Login and User Management

Vanguard - Advanced PHP Login and User Management

23 Articles / Last Updated: April 30, 2018

Installation

Server Requirements In order to install Vanguard application, your server must meet following requirements: PHP >= 7.1.3 OpenSSL PHP Extension PDO PHP Extension Mbstring PHP Extension Tokenizer PHP Extension Ctype PH...

Configuration

This section contains some important configuration options that are specific to Vanguard application. Since Vanguard is using Laravel PHP framework, full configuration options for some framework specific stuff can be fou...

Using Vanguard for Existing Website

Introduction If you already have an existing PHP application, and you want to add user login and registration features, this section will show you how to accomplish that with Vanguard. If can, it is highly recommended to...

Customizing Stylesheets

Vanguard is based on Bootstrap 4 and it uses SASS pre-processor for generating application stylesheets. This means that the recommended way to modify the stylesheets is to modify the sass files located in resources/asset...

Customizing the Registration Form

Introduction Registration form customization is something that probably no one can avoid if it comes to Vanguard customization. If you are familiar with Laravel then adding another field into registration form will be an...

Creating a New Page

Chances are high that you would like to create your own pages inside the Vanguard application. This section will explain in details everything you need to do to add your own page to the system. The page we are going to a...

Working with Vanguard Permissions

Vanguard comes with some default permissions but, if some of them does not fit your needs, they can be easily modified. Adding new permissions is a breeze too. In this example we will add 3 more different permissions: Vi...

Adding a Social Auth Provider

Since Vanguard utilizes Socialite package for social authentication, it's easy to add any social authentication provider that is supported by Socialite. So, let's proceed and add GitHub authentication driver. The Config...

Localization

Vanguard utilizes Laravel's default localization mechanism to allow you to translate it to any language you want. All translation files are located inside resources/lang folder. Within this directory there should be a su...

Development Mode

While you are developing new Vanguard features, or you are customizing the existing features, you should definitely enable development mode so you can clearly see all errors on the screen, without constantly having to ch...

Upgrade Guide

This section contains some info about what's changed in the latest version and how you should update your Vanguard application. You can find the version you are currently using inside config/app.php file. Complete change...

Authentication and Registration

Logging In After accessing any Vanguard-protected URL, a user will automatically be redirected to the Login Page. Users are able to log in by typing their username (or email) and password, or by using some of Social Auth...

The Dashboard

Administrator Dashboard Administrators are able to see some system stats on their dashboard page. They can see how many new users are registered for the current month, number of total users, number of banned users and nu...

User Profile

Every user of the system, no matter what his role is, is able to update his profile. Link to user's profile is available at the top right corner like it is displayed below: Details On Profile Details page, users can up...

User Management

Since user registration is completely optional, and it can be disabled inside system settings, administrators (or users with appropriate permissions) can manually add, edit and remove system users. Users List Users list...

Impersonating Users

All Vanguard users with users.manage permission can impersonate other system users. This is a very handy feature when your users report some bugs and when you need to see the application exactly how they can see it. Inst...

Session Management

Active Sessions Every system user is able to see his active sessions, as well as IP address from which he is logged in, the user agent and time of his last activity for that session. By clicking the red "x" button, a us...

Activity Log

User activity is recorded for every system user. Every time when someone updates his profile information, upload an avatar or maybe even make a password reset email request, system store that activity into the database a...

Roles and Permissions

Vanguard comes with advanced roles and permissions mechanism which allows you to easily manage your available roles and permissions via Web UI. The system is created to allow users to have only one role, and to allow dif...

System Settings

Vanguard provides a simple but powerful interface for managing global application settings. It allows administrators (or any other users with appropriate permission) to easily enable/disable registration, Two-Factor Auth...

Automated Testing

Vanguard comes with more than three hundred automated test. Most of them are functional tests that are using to verify all vital parts of Vanguard application, but there are also unit tests for some parts of the system. ...

FAQ

HTTP 500 Error: Request cannot be processed. What should I do? Make sure that you have PHP >= 7.0, since that's minimum PHP version required to use Vanguard. The requested URL /install was not found on this server. Am...

JSON API

Vanguard comes with a JSON API which you can use to build your mobile, desktop or web applications around Vanguard, from simple username/password authentication to user management. The complete API documentation is avail...