Please star the repo if you like it
A brief description of what this project does and who it's for
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
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');
}
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
To run tests, run the following command
npm run test
run
php artisan key:generate
You can build on top of the package
https://github.com/fariraimasocha/auth.test
git clone https://github.com/fariraimasocha/auth.test
- user login and registration
- social login
- spa
- password reset
I'm a full stack developer...