Skip to content

Commit 8750047

Browse files
cyrillkalitajoelbutcher
authored andcommitted
Speelcheck and update README
1 parent e9daba7 commit 8750047

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ composer require joelbutcher/laravel-archivable
2222

2323
#### Migrations
2424

25-
The `Archivable` trait works similarly to Laravel's `SoftDeletes` trait. To ensure proper usage of the trait. This package also ships with a helpful macro for Laravel's `\Illuminate\Database\Schema\Blueprint`. To get started, simply add the `archivedAt` macro to your migration, like so:
25+
The `Archivable` trait works similarly to Laravel's `SoftDeletes` trait. This package also ships with a helpful macro for Laravel's `\Illuminate\Database\Schema\Blueprint`. To get started, simply add the `archivedAt` macro to your migration, like so:
2626

2727
```php
2828
Schema::create('posts', function (Blueprint $table) {
@@ -35,12 +35,13 @@ Schema::create('posts', function (Blueprint $table) {
3535
```
3636

3737
#### Eloquent
38-
You can now, safely, include the `Archivable` tait in your eloquent model:
39-
38+
You can now, safely, include the `Archivable` trait in your Eloquent model:
39+
4040
``` php
4141
namespace App\Models;
4242

4343
use \Illuminate\Database\Eloquent\Model;
44+
use \LaravelArchivable\Archivable;
4445

4546
class Post extends Model {
4647

@@ -67,6 +68,7 @@ By default, the global scope of this trait uses the `withoutArchived` extension
6768
### Testing
6869

6970
```composer test```
71+
7072
### Changelog
7173

7274
Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

0 commit comments

Comments
 (0)