Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
calebporzio committed Jan 21, 2024
1 parent 808dff0 commit 928622a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,8 @@ class Products extends Model
```

## Advanced Usage
When you need more flexibility, you can implement the `runAfterMigrating(BluePrint $table)` method, allowing you to customize the table after it has been created. This might be useful for adding indexes to certain columns.

When you need more flexibility, you can implement the `afterMigrate(BluePrint $table)` method, allowing you to customize the table after it has been created. This might be useful for adding indexes to certain columns.

```php
class Products extends Model
Expand All @@ -143,7 +144,7 @@ class Products extends Model
['name' => 'Rake', 'price' => '9.99'],
];

protected function runAfterMigrating(Blueprint $table)
protected function afterMigrate(Blueprint $table)
{
$table->index('name');
}
Expand Down Expand Up @@ -268,7 +269,7 @@ Sushi requires you to add two properties to your model, if it uses a string-base
class Role extends Model
{
use \Sushi\Sushi;

public $incrementing = false;

protected $keyType = 'string';
Expand Down

0 comments on commit 928622a

Please sign in to comment.