This commit is contained in:
1 parent
d086b29bcc
commit
a1ac81a73a
29 files changed
+2349
-17899
No files matched your search
+2
-1
@@ -3,12 +3,13 @@
|
||||
namespace App\Models;
|
||||
|
||||
use App\Services\Search\BookConfigurator;
|
||||
use Bnb\Laravel\Attachments\HasAttachment;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use ScoutElastic\Searchable;
|
||||
|
||||
class Book extends Model {
|
||||
|
||||
use Searchable;
|
||||
use Searchable, HasAttachment;
|
||||
|
||||
protected $indexConfigurator = BookConfigurator::class;
|
||||
|
||||
|
||||
@@ -14,4 +14,8 @@ class Location extends Model {
|
||||
protected $fillable = [
|
||||
'name',
|
||||
];
|
||||
|
||||
public function books() {
|
||||
return $this->hasMany(Book::class);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user