Skip to content
This repository has been archived by the owner on May 21, 2021. It is now read-only.

Commit

Permalink
Change capitalizations
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert-Hucks authored Jan 7, 2019
1 parent 171e50e commit a076e19
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ php artisan migrate
3) Configure models

The first step here is to add the `Trait` to the `Model`.
Add `use roberthucks\selfdestruct\Traits\SelfDestruct;` and then user it inside your `Model`s class like so `use SelfDestruct;`
Add `use RobertHucks\SelfDestruct\Traits\SelfDestruct;` and then user it inside your `Model`s class like so `use SelfDestruct;`
Once these have been added to your `Model` you need to then add a property called `$life_time`. This is the amount of seconds that a `Model` should stay alive for.

Here is how a `Model` looks when modified:
Expand All @@ -44,7 +44,7 @@ namespace App;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
use roberthucks\selfdestruct\Traits\SelfDestruct;
use RobertHucks\SelfDestruct\Traits\SelfDestruct;

class Post extends Model
{
Expand Down

0 comments on commit a076e19

Please sign in to comment.