From 02553ab2e12d2736deee9fbaa9e0de91fbda364f Mon Sep 17 00:00:00 2001 From: Tony Lea Date: Wed, 17 Apr 2024 14:13:02 -0400 Subject: [PATCH] updating the URL and readme info --- README.md | 69 +++++++++++++++++++++++++++----------------------- routes/web.php | 2 +- 2 files changed, 38 insertions(+), 33 deletions(-) diff --git a/README.md b/README.md index 0e3f371..6130b7f 100644 --- a/README.md +++ b/README.md @@ -1,52 +1,57 @@ -# Very short description of the package +

Auth Logo

-[![Latest Version on Packagist](https://img.shields.io/packagist/v/devdojo/auth.svg?style=flat-square)](https://packagist.org/packages/devdojo/auth) -[![Total Downloads](https://img.shields.io/packagist/dt/devdojo/auth.svg?style=flat-square)](https://packagist.org/packages/devdojo/auth) -![GitHub Actions](https://github.com/devdojo/auth/actions/workflows/main.yml/badge.svg) +

+Build Status +Total Downloads +Latest Stable Version +License +

-This is where your description should go. Try and limit it to a paragraph or two, and maybe throw in a mention of what PSRs you support to avoid any confusion with users and contributors. +## About Auth + +The DevDojo Auth package is a plug'n play Authentication wrapper for your Laravel application. Easily update and modify your authentication pages, add social providers, and many other auth features. + +- [Simple, fast routing engine](https://laravel.com/docs/routing). +- [Powerful dependency injection container](https://laravel.com/docs/container). +- Multiple back-ends for [session](https://laravel.com/docs/session) and [cache](https://laravel.com/docs/cache) storage. +- Expressive, intuitive [database ORM](https://laravel.com/docs/eloquent). +- Database agnostic [schema migrations](https://laravel.com/docs/migrations). +- [Robust background job processing](https://laravel.com/docs/queues). +- [Real-time event broadcasting](https://laravel.com/docs/broadcasting). + +Laravel is accessible, powerful, and provides tools required for large, robust applications. ## Installation -You can install the package via composer: +To install this package you'll want to first have Laravel Breeze, Jetstream, Genesis, or any other Laravel starter kit installed. Then you'll need to install the package: -```bash +``` composer require devdojo/auth ``` -## Usage +After the package has been installed you'll need to publish the authentication assets with the followign command: -```php -// Usage description here ``` - -### Testing - -```bash -composer test +php artisan vendor:publish --tag=auth:assets ``` -### Changelog - -Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently. +Auth has just been isntalled and you'll be able to visit the following authentication routes: -## Contributing + - Login (project.test/auth/login) + - Register (project.test/auth/register) + - Forgot Password (project.test/auth/register) + - Password Reset (project.test/auth/password/reset) + - Password Reset Token (project.test/auth/password/ReAlLyLoNgPaSsWoRdReSeTtOkEn) + - Password Confirmation (project.test/auth/password/confirm) -Please see [CONTRIBUTING](CONTRIBUTING.md) for details. +## Auth Config -### Security +You may also want to publish the auth config by running the following: -If you discover any security related issues, please email tony@devdojo.com instead of using the issue tracker. - -## Credits - -- [Tony Lea](https://github.com/devdojo) -- [All Contributors](../../contributors) +``` +php artisan vendor:publish --tag=auth:config +``` ## License -The MIT License (MIT). Please see [License File](LICENSE.md) for more information. - -## Laravel Package Boilerplate - -This package was generated using the [Laravel Package Boilerplate](https://laravelpackageboilerplate.com). +The Laravel framework is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT). diff --git a/routes/web.php b/routes/web.php index a85081f..6315654 100644 --- a/routes/web.php +++ b/routes/web.php @@ -10,7 +10,7 @@ Route::redirect('register', 'auth/register')->name('register'); // define the logout route -Route::middleware('auth')->group(function () { +Route::middleware(['auth', 'web'])->group(function () { Route::post('logout', LogoutController::class) ->name('logout'); }); \ No newline at end of file