Otherwise phpstorm doesn't understand the paths correctly. He thinks that this is not a complete application, but a package. And when creating a class, the namespace indicates “app” with a small letter, but should be “App”.
16 lines
422 B
PHP
16 lines
422 B
PHP
<?php declare(strict_types=1);
|
|
|
|
namespace App\Contracts\Models;
|
|
|
|
use App\Enums\StorageType;
|
|
use App\Models\Storage as StorageModel;
|
|
use Illuminate\Database\Eloquent\Relations\MorphMany;
|
|
use Illuminate\Support\Collection;
|
|
|
|
interface Storage
|
|
{
|
|
public function storage(): MorphMany;
|
|
public function getStorageOne(StorageType $type): ?StorageModel;
|
|
public function getStorageMany(StorageType $type): Collection;
|
|
}
|