'array', ]; /** * @var array */ protected $hidden = ['password', 'email_verified_at', 'options']; /** * @return BelongsToMany */ public function groups(): BelongsToMany { return $this->belongsToMany(Group::class); } /** * Laravel Scout under <=8 provides only * — NullEngine, that is searches nothing and not applicable for tests and * — AlgoliaEngine, that is 3-d party dependent and not applicable for tests too. * * The only test-ready engine is DatabaseEngine that comes with Scout >8 * * Then running tests we will examine engine and skip test until DatabaseEngine is provided. * * @see QueuedQueryExportTest::can_queue_scout_export() * @see FromQueryTest::can_export_from_scout() */ public function searchableUsing(): Engine { return class_exists('\Laravel\Scout\Engines\DatabaseEngine') ? new DatabaseEngine() : new NullEngine(); } }