feat: prepare core Laravel configuration and tour model
This commit is contained in:
@@ -80,6 +80,7 @@ class Tour extends Model
|
|||||||
public function favorites()
|
public function favorites()
|
||||||
{
|
{
|
||||||
return $this->morphMany(Favorite::class, 'favoritable');
|
return $this->morphMany(Favorite::class, 'favoritable');
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function files()
|
public function files()
|
||||||
|
|||||||
@@ -40,3 +40,4 @@ return Application::configure(basePath: dirname(__DIR__))
|
|||||||
//
|
//
|
||||||
})->create();
|
})->create();
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -72,7 +72,7 @@ return [
|
|||||||
],
|
],
|
||||||
'admin' => [
|
'admin' => [
|
||||||
'driver' => 'eloquent',
|
'driver' => 'eloquent',
|
||||||
'model' =>\App\Models\Admin::class,
|
'model' => \App\Models\Admin::class,
|
||||||
],
|
],
|
||||||
|
|
||||||
// 'users' => [
|
// 'users' => [
|
||||||
|
|||||||
Reference in New Issue
Block a user