*/ protected $fillable = [ 'quality_title', 'quality_text', 'product1_title', 'product1_text', 'product2_title', 'product2_text', 'environment_title', 'environment_text', ]; /** * Perform any actions required after the model boots. * * @return void */ protected static function booted(): void { static::creating(function () { throw new \RuntimeException("Creating a new page is not authorized"); }); static::deleting(function () { throw new \RuntimeException('Deleting a page is not authorized'); }); } // * RELATIONS /** * The pictos that belong to the page. * * @return \Illuminate\Database\Eloquent\Relations\BelongsToMany */ public function pictos(): \Illuminate\Database\Eloquent\Relations\BelongsToMany { return $this->belongsToMany(Picto::class); } }