Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
Signed-off-by: Sam Poyigi <[email protected]>
  • Loading branch information
sampoyigi committed May 11, 2024
1 parent 03f60cc commit 46f2191
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ The Orange theme provides frontend components to display the banners, subscribe

#### Creating banners

You can programmatically create a banner using the `Igniter\Frontend\Models\Banners` model:
You can programmatically create a banner using the `Igniter\Frontend\Models\Banner` model:

```php
use Igniter\Frontend\Models\Banners;
use Igniter\Frontend\Models\Banner;

$banner = Banners::create([
'name' => 'Banner Name',
Expand All @@ -61,7 +61,7 @@ $banner = Banners::create([
]);
```

The following attributes are available on the `Igniter\Frontend\Models\Banners` model:
The following attributes are available on the `Igniter\Frontend\Models\Banner` model:

- `name`: _(string)_ The name of the banner. **Required.**
- `code`: _(string)_ A unique code for the banner. **Required.**
Expand All @@ -75,10 +75,10 @@ The following attributes are available on the `Igniter\Frontend\Models\Banners`

#### Displaying banners

You can display banners on your front-end pages using the `Igniter\Frontend\Models\Banners` model to fetch the banner by code:
You can display banners on your front-end pages using the `Igniter\Frontend\Models\Banner` model to fetch the banner by code:

```php
use Igniter\Frontend\Models\Banners;
use Igniter\Frontend\Models\Banner;

$banner = Banners::isEnabled()->whereCode('unique-code')->first();
```
Expand Down

0 comments on commit 46f2191

Please sign in to comment.