1. Go to this page and download the library: Download illegal/insideauth library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
illegal / insideauth example snippets
InsideAuth::boot('myproject');
\Illegal\InsideAuth\InsideAuth::boot('myproject')
// Disable Registration. You can pass a boolean value. This will disable registration if the value is true.
->withoutRegistration()
// Disable Forgot Password. You can pass a boolean value. This will disable forgot password if the value is true.
->withoutForgotPassword()
// Disable Email Verification. You can pass a boolean value. This will disable email verification if the value is true.
->withoutEmailVerification()
// Disable User Profile. You can pass a boolean value. This will disable user profile if the value is true.
->withoutUserProfile()
// This will set the dashboard route, the user will be redirected to after login.
->withDashboard('my_dashboard_route')
// The template for the confirm password page.
->withConfirmPasswordTemplate('my_confirm_password_template')
// The template for the forgot password page.
->withForgotPasswordTemplate('my_forgot_password_template')
// The template for the login page.
->withLoginTemplate('my_login_template')
// The template for the register page.
->withRegisterTemplate('my_register_template')
// The template for the reset password page.
->withResetPasswordTemplate('my_reset_password_template')
// The template for the verify email page.
->withVerifyEmailTemplate('my_verify_email_template')
// The template for the user profile page.
->withProfileEditTemplate('my_profile_edit_template');
// Flags
$auth->registration_enabled // Whether registration is enabled
$auth->forgot_password_enabled // Whether forgot password is enabled
$auth->email_verification_enabled // Whether email verification is enabled
$auth->user_profile_enabled // Whether the user profile is enabled
// Templates
$auth->template_confirm_password // The name of the confirm password template
$auth->template_forgot_password // The name of the forgot password template
$auth->template_login // The name of the login template
$auth->template_register // The name of the register template
$auth->template_reset_password // The name of the reset password template
$auth->template_verify_email // The name of the verify email template
$auth->template_profile_edit // The name of the profile edit template
// Routes
$auth->dashboard // The name of the dashboard route
$auth->route_login // The name of the login route
$auth->route_register // The name of the register route
$auth->route_password_request // The name of the password request route
$auth->route_password_email // The name of the password email route
$auth->route_password_reset // The name of the password reset route
$auth->route_password_store // The name of the password store route
$auth->route_logout // The name of the logout route
$auth->route_verification_notice // The name of the verification notice route
$auth->route_verification_verify // The name of the verification verify route
$auth->route_verification_send // The name of the verification send route
$auth->route_password_confirm // The name of the password confirm route
$auth->route_password_update // The name of the password update route
$auth->route_profile_edit // The name of the profile edit route
$auth->route_profile_update // The name of the profile update route
$auth->route_profile_destroy // The name of the profile destroy route
// Middlewares
$auth->middleware_verified // The name of the main middleware
$auth->middleware_guest // The name of the guest middleware
$auth->middleware_logged_in // The name of the logged in middleware
$auth->middleware_web // The name of the web middleware
// Security
$auth->security_guard // The name of the guard
$auth->security_provider // The name of the provider
$auth->security_password_broker // The name of the password broker