smortexa/laravel-arkitect

Extending Model through another class produces a violation

szepeviktor opened this issue · 1 comments

App\Models\SoftSkill has 1 violations
  should extend Illuminate\Database\Eloquent\Model because we use Laravel framework!

https://github.com/smortexa/laravel-arkitect/blob/main/src/Rules/Extending/ModelsExtending.php

Hello! SoftSkill is extending Model this way.

abstract class Taxonomy extends Model
class SoftSkill extends Taxonomy

What should I do to code correctly?

You can publish the package configuration file and comment that rule and create your own custom rule for your models.