for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types = 1);
namespace App\Models;
use App\Models\Traits\EloquentGetTableName;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\HasMany;
use Illuminate\Database\Eloquent\SoftDeletes;
class Section extends Model
{
use SoftDeletes;
use EloquentGetTableName;
/**
* The attributes that should be mutated to dates.
*
* @var array
*/
protected $dates = ["deleted_at"];
* Get the questions of this section
* @return HasMany
public function questions() : HasMany
return $this->hasMany("App\Models\Question");
}