https://github.com/oriondevelops/nova-greeter
A Laravel Nova card to greet your users
https://github.com/oriondevelops/nova-greeter
card laravel laravel-nova laravel-nova-card nova
Last synced: 5 months ago
JSON representation
A Laravel Nova card to greet your users
- Host: GitHub
- URL: https://github.com/oriondevelops/nova-greeter
- Owner: oriondevelops
- License: mit
- Created: 2023-02-21T20:28:48.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-12-29T01:21:32.000Z (over 1 year ago)
- Last Synced: 2025-09-21T07:05:02.066Z (9 months ago)
- Topics: card, laravel, laravel-nova, laravel-nova-card, nova
- Language: Vue
- Homepage:
- Size: 149 KB
- Stars: 8
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# A Laravel Nova card to greet your users
[](https://packagist.org/packages/oriondevelops/nova-greeter)
[](https://packagist.org/packages/oriondevelops/nova-greeter)
This [Laravel Nova](https://nova.laravel.com) package adds a customizable greeting card to your dashboard.

## Installation
You can install the package via composer:
```bash
composer require oriondevelops/nova-greeter
```
## Usage
[Register the card](https://nova.laravel.com/docs/4.0/customization/dashboards.html#defining-dashboards) in your preferred dashboard:
```php
use Orion\NovaGreeter\GreeterCard;
// ...
public function cards()
{
return [
// ...
GreeterCard::make()
->user(name: 'John Doe', title: 'The King in the North')
->avatar(url: 'https://ui-avatars.com/api/?size=300&color=7F9CF5&background=EBF4FF&name=John+Doe'),
];
}
```
**Message**
```php
->message(text: 'Welcome back,')
```
**Button**
```php
->button(name: 'Call To Action', target: '/nova/resources/users')
```
**Avatar**
```php
->avatar(url: $avatarUrl ?? $placeholderAvatarUrl)
```

**Verified**
```php
->verified(text: 'Verified Account')
```
## Example

```php
GreeterCard::make()
->user(name: 'ORION', title: 'Admin')
->message(text: 'Welcome back,')
->button(name: 'See users', target: '/nova/resources/users')
->avatar(url: 'https://avatars.githubusercontent.com/u/39307250')
->width('1/2'),
```
## Localization
The translation file can be published using the following command:
```bash
php artisan vendor:publish --provider="Orion\NovaGreeter\CardServiceProvider"
```
## Credits
- [Mücahit Uğur](https://github.com/oriondevelops)
- [All Contributors](https://github.com/oriondevelops/nova-greeter/contributors)
## License
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.