Skip to content

Commit

Permalink
Update README.MD
Browse files Browse the repository at this point in the history
  • Loading branch information
nagsamayam authored Sep 7, 2021
1 parent f415f7b commit e52955f
Showing 1 changed file with 33 additions and 5 deletions.
38 changes: 33 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,21 @@ This is where your description should go. Limit it to a paragraph or two. Consid

You can install the package via composer:

Add below to your composer.json `repositories` array

```bash
{
"type": "vcs",
"url": "https://github.com/nagsamayam/admin-fortify"
}
```

```bash
composer require nagsamayam/admin-fortify
```

The package will automatically register itself.

You can publish and run the migrations with:

```bash
Expand All @@ -37,15 +48,32 @@ You can publish the config file with:
php artisan vendor:publish --provider="NagSamayam\AdminFortify\AdminFortifyServiceProvider" --tag="admin-fortify-config"
```

This is the contents of the published config file:

```php
return [
];
## Usage

Add below to your config/auth.php `guards` array

```bash
'admin' => [
'driver' => 'session',
'provider' => 'admins',
],
```

## Usage(Will be added soon)
Add below to your config/auth.php `providers` array

```bash
'admins' => [
'driver' => 'eloquent',
'model' => NagSamayam\AdminFortify\Models\Admin::class,
],
```


```bash
php artisan migrate
php artisan db:seed --class=SuperAdminSeeder
```

## Testing

Expand Down

0 comments on commit e52955f

Please sign in to comment.