Skip to content

shokod/auth.test

 
 

Repository files navigation

Hi, I'm Farirai! 👋

Please star the repo if you like it

Auth.Test Package

A brief description of what this project does and who it's for

Installation

To run this project run

  git clone https://github.com/fariraimasocha/auth.test
  cd auth.test
  composer install

to Install the dependencies using Composer:

  composer update

to update the dependencies using Composer:

  php artisan key:generate

Generate the application key:

  php artisan migrate

To migrate the database

  npm run dev

Start the server

Usage

After completing the installation steps, you can start utilizing the Laravel Auth Package in your Laravel application. Here are a few important points to consider:

User Registration: The package provides a user registration feature out of the box. Simply direct users to the registration page to create new accounts.

// RegistrationController.php

use App\Models\User;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Hash;

public function register(Request $request)
{
    $request->validate([
        'name' => 'required|string',
        'email' => 'required|email|unique:users',
        'password' => 'required|min:8',
    ]);

    $user = User::create([
        'name' => $request->name,
        'email' => $request->email,
        'password' => Hash::make($request->password),
    ]);

    // Additional logic or redirects

    return redirect('/dashboard');
}

Customization

The Laravel Auth Package offers a high level of customization. You can modify views, routes, and controllers to match the branding and specifications of your application. For example, you can customize the login and registration views in the resources/views/auth directory and update the

Running Tests

To run tests, run the following command

  npm run test

Authors

FAQ

Php artisan serve not working

run

php artisan key:generate

How to customize

You can build on top of the package

github repository

https://github.com/fariraimasocha/auth.test

  git clone https://github.com/fariraimasocha/auth.test

Features

  • user login and registration
  • social login
  • spa
  • password reset

🚀 About Me

I'm a full stack developer...

Acknowledgements

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 61.3%
  • PHP 22.9%
  • Blade 15.8%