| 1 | <?php |
||
| 8 | abstract class BaseModel extends Model |
||
| 9 | { |
||
| 10 | protected $guarded = []; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * Get the table associated with the model. |
||
| 14 | * |
||
| 15 | * @return string |
||
| 16 | */ |
||
| 17 | public function getTable() |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Get the joining table name for a many-to-many relation. |
||
| 24 | * |
||
| 25 | * @param string $related |
||
| 26 | * @param \Illuminate\Database\Eloquent\Model|null $instance |
||
| 27 | * @return string |
||
| 28 | */ |
||
| 29 | public function joiningTable($related, $instance = null) |
||
| 33 | } |
||
| 34 |