Skip to content

Commit 09e8e8d

Browse files
Rename to laravel-model-cache
- composer: codewithdennis/laravel-model-cache, namespace CodeWithDennis\LaravelModelCache - Update README title, badges, install and use statements - Git remote set to laravel-model-cache
1 parent f97fc62 commit 09e8e8d

File tree

5 files changed

+13
-13
lines changed

5 files changed

+13
-13
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# Cache Pre-Warming
1+
# Laravel Model Cache
22

3-
[![Tests](https://github.com/CodeWithDennis/cache-pre-warming/actions/workflows/tests.yml/badge.svg?branch=master)](https://github.com/CodeWithDennis/cache-pre-warming/actions/workflows/tests.yml)
4-
[![License](https://img.shields.io/github/license/CodeWithDennis/cache-pre-warming)](https://github.com/CodeWithDennis/cache-pre-warming/blob/master/LICENSE.md)
5-
[![PHP Version](https://img.shields.io/packagist/php-v/codewithdennis/cache-pre-warming)](https://packagist.org/packages/codewithdennis/cache-pre-warming)
3+
[![Tests](https://github.com/CodeWithDennis/laravel-model-cache/actions/workflows/tests.yml/badge.svg?branch=master)](https://github.com/CodeWithDennis/laravel-model-cache/actions/workflows/tests.yml)
4+
[![License](https://img.shields.io/github/license/CodeWithDennis/laravel-model-cache)](https://github.com/CodeWithDennis/laravel-model-cache/blob/master/LICENSE.md)
5+
[![PHP Version](https://img.shields.io/packagist/php-v/codewithdennis/laravel-model-cache)](https://packagist.org/packages/codewithdennis/laravel-model-cache)
66
[![Laravel](https://img.shields.io/badge/Laravel-12.x-red)](https://laravel.com)
77

88
This package does two things.
@@ -16,7 +16,7 @@ This package does two things.
1616
## Installation
1717

1818
```bash
19-
composer require codewithdennis/cache-pre-warming
19+
composer require codewithdennis/laravel-model-cache
2020
```
2121

2222
---
@@ -26,7 +26,7 @@ composer require codewithdennis/cache-pre-warming
2626
Add the trait to any model:
2727

2828
```php
29-
use CodeWithDennis\CachePreWarming\Traits\HasCache;
29+
use CodeWithDennis\LaravelModelCache\Traits\HasCache;
3030

3131
class User extends Model
3232
{

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"name": "codewithdennis/cache-pre-warming",
2+
"name": "codewithdennis/laravel-model-cache",
33
"description": "Pre-warm and cache Eloquent query results. Run heavy queries once with warmup (forever cache) or use TTL-based caching on any model.",
4-
"keywords": ["laravel", "eloquent", "cache", "pre-warming", "warmup", "query cache", "ttl", "performance"],
4+
"keywords": ["laravel", "eloquent", "cache", "model-cache", "pre-warming", "warmup", "query cache", "ttl", "performance"],
55
"license": "MIT",
66
"authors": [
77
{
@@ -25,7 +25,7 @@
2525
},
2626
"autoload": {
2727
"psr-4": {
28-
"CodeWithDennis\\CachePreWarming\\": "src/"
28+
"CodeWithDennis\\LaravelModelCache\\": "src/"
2929
}
3030
},
3131
"autoload-dev": {

src/CachedBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
namespace CodeWithDennis\CachePreWarming;
5+
namespace CodeWithDennis\LaravelModelCache;
66

77
use Illuminate\Database\Eloquent\Builder;
88
use Illuminate\Database\Eloquent\Collection;

src/Traits/HasCache.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
declare(strict_types=1);
44

5-
namespace CodeWithDennis\CachePreWarming\Traits;
5+
namespace CodeWithDennis\LaravelModelCache\Traits;
66

7-
use CodeWithDennis\CachePreWarming\CachedBuilder;
7+
use CodeWithDennis\LaravelModelCache\CachedBuilder;
88
use Illuminate\Database\Eloquent\Builder;
99

1010
trait HasCache

tests/Stubs/User.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
namespace Tests\Stubs;
66

7-
use CodeWithDennis\CachePreWarming\Traits\HasCache;
7+
use CodeWithDennis\LaravelModelCache\Traits\HasCache;
88
use Illuminate\Database\Eloquent\Model;
99

1010
class User extends Model

0 commit comments

Comments
 (0)