diff --git a/app/Activity.php b/app/Activity.php index 1115ec1d..f2696588 100644 --- a/app/Activity.php +++ b/app/Activity.php @@ -10,32 +10,6 @@ /** * App\Activity * - * @property int $id - * @property string $name - * @property string|null $description - * @property \Illuminate\Support\Carbon|null $created_at - * @property \Illuminate\Support\Carbon|null $updated_at - * @property \Illuminate\Support\Carbon|null $deleted_at - * - * @property-read \Illuminate\Database\Eloquent\Collection|array<\App\Process> $activitiesProcesses - * @property-read int|null $activities_processes_count - * @property-read \Illuminate\Database\Eloquent\Collection|array<\App\Operation> $operations - * @property-read int|null $operations_count - * - * @method static \Illuminate\Database\Eloquent\Builder|Activity newModelQuery() - * @method static \Illuminate\Database\Eloquent\Builder|Activity newQuery() - * @method static \Illuminate\Database\Query\Builder|Activity onlyTrashed() - * @method static \Illuminate\Database\Eloquent\Builder|Activity query() - * @method static \Illuminate\Database\Eloquent\Builder|Activity whereCreatedAt($value) - * @method static \Illuminate\Database\Eloquent\Builder|Activity whereDeletedAt($value) - * @method static \Illuminate\Database\Eloquent\Builder|Activity whereDescription($value) - * @method static \Illuminate\Database\Eloquent\Builder|Activity whereId($value) - * @method static \Illuminate\Database\Eloquent\Builder|Activity whereName($value) - * @method static \Illuminate\Database\Eloquent\Builder|Activity whereUpdatedAt($value) - * @method static \Illuminate\Database\Query\Builder|Activity withTrashed() - * @method static \Illuminate\Database\Query\Builder|Activity withoutTrashed() - * - * @mixin \Eloquent */ class Activity extends Model { @@ -45,6 +19,7 @@ class Activity extends Model public static $searchable = [ 'name', + 'description', ]; protected $dates = [ diff --git a/app/Actor.php b/app/Actor.php index 296d4747..75801bad 100644 --- a/app/Actor.php +++ b/app/Actor.php @@ -9,35 +9,6 @@ /** * App\Actor - * - * @property int $id - * @property string $name - * @property string|null $nature - * @property string|null $type - * @property string|null $contact - * @property \Illuminate\Support\Carbon|null $created_at - * @property \Illuminate\Support\Carbon|null $updated_at - * @property \Illuminate\Support\Carbon|null $deleted_at - * - * @property-read \Illuminate\Database\Eloquent\Collection|array<\App\Operation> $operations - * @property-read int|null $operations_count - * - * @method static \Illuminate\Database\Eloquent\Builder|Actor newModelQuery() - * @method static \Illuminate\Database\Eloquent\Builder|Actor newQuery() - * @method static \Illuminate\Database\Query\Builder|Actor onlyTrashed() - * @method static \Illuminate\Database\Eloquent\Builder|Actor query() - * @method static \Illuminate\Database\Eloquent\Builder|Actor whereContact($value) - * @method static \Illuminate\Database\Eloquent\Builder|Actor whereCreatedAt($value) - * @method static \Illuminate\Database\Eloquent\Builder|Actor whereDeletedAt($value) - * @method static \Illuminate\Database\Eloquent\Builder|Actor whereId($value) - * @method static \Illuminate\Database\Eloquent\Builder|Actor whereName($value) - * @method static \Illuminate\Database\Eloquent\Builder|Actor whereNature($value) - * @method static \Illuminate\Database\Eloquent\Builder|Actor whereType($value) - * @method static \Illuminate\Database\Eloquent\Builder|Actor whereUpdatedAt($value) - * @method static \Illuminate\Database\Query\Builder|Actor withTrashed() - * @method static \Illuminate\Database\Query\Builder|Actor withoutTrashed() - * - * @mixin \Eloquent */ class Actor extends Model { diff --git a/app/Annuaire.php b/app/Annuaire.php index 4752fa2d..338c61f6 100644 --- a/app/Annuaire.php +++ b/app/Annuaire.php @@ -8,35 +8,7 @@ use Illuminate\Database\Eloquent\SoftDeletes; /** - * App\Annuaire - * - * @property int $id - * @property string $name - * @property string|null $description - * @property string|null $solution - * @property \Illuminate\Support\Carbon|null $created_at - * @property \Illuminate\Support\Carbon|null $updated_at - * @property \Illuminate\Support\Carbon|null $deleted_at - * @property int|null $zone_admin_id - * - * @property-read \App\ZoneAdmin|null $zone_admin - * - * @method static \Illuminate\Database\Eloquent\Builder|Annuaire newModelQuery() - * @method static \Illuminate\Database\Eloquent\Builder|Annuaire newQuery() - * @method static \Illuminate\Database\Query\Builder|Annuaire onlyTrashed() - * @method static \Illuminate\Database\Eloquent\Builder|Annuaire query() - * @method static \Illuminate\Database\Eloquent\Builder|Annuaire whereCreatedAt($value) - * @method static \Illuminate\Database\Eloquent\Builder|Annuaire whereDeletedAt($value) - * @method static \Illuminate\Database\Eloquent\Builder|Annuaire whereDescription($value) - * @method static \Illuminate\Database\Eloquent\Builder|Annuaire whereId($value) - * @method static \Illuminate\Database\Eloquent\Builder|Annuaire whereName($value) - * @method static \Illuminate\Database\Eloquent\Builder|Annuaire whereSolution($value) - * @method static \Illuminate\Database\Eloquent\Builder|Annuaire whereUpdatedAt($value) - * @method static \Illuminate\Database\Eloquent\Builder|Annuaire whereZoneAdminId($value) - * @method static \Illuminate\Database\Query\Builder|Annuaire withTrashed() - * @method static \Illuminate\Database\Query\Builder|Annuaire withoutTrashed() - * - * @mixin \Eloquent + * App\Annuaire * */ class Annuaire extends Model { diff --git a/app/ApplicationBlock.php b/app/ApplicationBlock.php index ef92c0bc..fd11d1cb 100644 --- a/app/ApplicationBlock.php +++ b/app/ApplicationBlock.php @@ -9,33 +9,6 @@ /** * App\ApplicationBlock - * - * @property int $id - * @property string $name - * @property string|null $description - * @property string|null $responsible - * @property \Illuminate\Support\Carbon|null $created_at - * @property \Illuminate\Support\Carbon|null $updated_at - * @property \Illuminate\Support\Carbon|null $deleted_at - * - * @property-read \Illuminate\Database\Eloquent\Collection|array<\App\MApplication> $applications - * @property-read int|null $applications_count - * - * @method static \Illuminate\Database\Eloquent\Builder|ApplicationBlock newModelQuery() - * @method static \Illuminate\Database\Eloquent\Builder|ApplicationBlock newQuery() - * @method static \Illuminate\Database\Query\Builder|ApplicationBlock onlyTrashed() - * @method static \Illuminate\Database\Eloquent\Builder|ApplicationBlock query() - * @method static \Illuminate\Database\Eloquent\Builder|ApplicationBlock whereCreatedAt($value) - * @method static \Illuminate\Database\Eloquent\Builder|ApplicationBlock whereDeletedAt($value) - * @method static \Illuminate\Database\Eloquent\Builder|ApplicationBlock whereDescription($value) - * @method static \Illuminate\Database\Eloquent\Builder|ApplicationBlock whereId($value) - * @method static \Illuminate\Database\Eloquent\Builder|ApplicationBlock whereName($value) - * @method static \Illuminate\Database\Eloquent\Builder|ApplicationBlock whereResponsible($value) - * @method static \Illuminate\Database\Eloquent\Builder|ApplicationBlock whereUpdatedAt($value) - * @method static \Illuminate\Database\Query\Builder|ApplicationBlock withTrashed() - * @method static \Illuminate\Database\Query\Builder|ApplicationBlock withoutTrashed() - * - * @mixin \Eloquent */ class ApplicationBlock extends Model { diff --git a/app/ApplicationModule.php b/app/ApplicationModule.php index 3f5ebd41..11a09f73 100644 --- a/app/ApplicationModule.php +++ b/app/ApplicationModule.php @@ -10,34 +10,6 @@ /** * App\ApplicationModule * - * @property int $id - * @property string $name - * @property string|null $description - * @property \Illuminate\Support\Carbon|null $created_at - * @property \Illuminate\Support\Carbon|null $updated_at - * @property \Illuminate\Support\Carbon|null $deleted_at - * - * @property-read \Illuminate\Database\Eloquent\Collection|array<\App\Flux> $moduleDestFluxes - * @property-read int|null $module_dest_fluxes_count - * @property-read \Illuminate\Database\Eloquent\Collection|array<\App\Flux> $moduleSourceFluxes - * @property-read int|null $module_source_fluxes_count - * @property-read \Illuminate\Database\Eloquent\Collection|array<\App\ApplicationService> $applicationServices - * @property-read int|null $modules_application_services_count - * - * @method static \Illuminate\Database\Eloquent\Builder|ApplicationModule newModelQuery() - * @method static \Illuminate\Database\Eloquent\Builder|ApplicationModule newQuery() - * @method static \Illuminate\Database\Query\Builder|ApplicationModule onlyTrashed() - * @method static \Illuminate\Database\Eloquent\Builder|ApplicationModule query() - * @method static \Illuminate\Database\Eloquent\Builder|ApplicationModule whereCreatedAt($value) - * @method static \Illuminate\Database\Eloquent\Builder|ApplicationModule whereDeletedAt($value) - * @method static \Illuminate\Database\Eloquent\Builder|ApplicationModule whereDescription($value) - * @method static \Illuminate\Database\Eloquent\Builder|ApplicationModule whereId($value) - * @method static \Illuminate\Database\Eloquent\Builder|ApplicationModule whereName($value) - * @method static \Illuminate\Database\Eloquent\Builder|ApplicationModule whereUpdatedAt($value) - * @method static \Illuminate\Database\Query\Builder|ApplicationModule withTrashed() - * @method static \Illuminate\Database\Query\Builder|ApplicationModule withoutTrashed() - * - * @mixin \Eloquent */ class ApplicationModule extends Model { diff --git a/app/ApplicationService.php b/app/ApplicationService.php index 3ea29302..9c0f529d 100644 --- a/app/ApplicationService.php +++ b/app/ApplicationService.php @@ -10,38 +10,6 @@ /** * App\ApplicationService * - * @property int $id - * @property string|null $description - * @property string|null $exposition - * @property string $name - * @property \Illuminate\Support\Carbon|null $created_at - * @property \Illuminate\Support\Carbon|null $updated_at - * @property \Illuminate\Support\Carbon|null $deleted_at - * - * @property-read \Illuminate\Database\Eloquent\Collection|array<\App\ApplicationModule> $modules - * @property-read int|null $modules_count - * @property-read \Illuminate\Database\Eloquent\Collection|array<\App\Flux> $serviceDestFluxes - * @property-read int|null $service_dest_fluxes_count - * @property-read \Illuminate\Database\Eloquent\Collection|array<\App\Flux> $serviceSourceFluxes - * @property-read int|null $service_source_fluxes_count - * @property-read \Illuminate\Database\Eloquent\Collection|array<\App\MApplication> $servicesMApplications - * @property-read int|null $services_m_applications_count - * - * @method static \Illuminate\Database\Eloquent\Builder|ApplicationService newModelQuery() - * @method static \Illuminate\Database\Eloquent\Builder|ApplicationService newQuery() - * @method static \Illuminate\Database\Query\Builder|ApplicationService onlyTrashed() - * @method static \Illuminate\Database\Eloquent\Builder|ApplicationService query() - * @method static \Illuminate\Database\Eloquent\Builder|ApplicationService whereCreatedAt($value) - * @method static \Illuminate\Database\Eloquent\Builder|ApplicationService whereDeletedAt($value) - * @method static \Illuminate\Database\Eloquent\Builder|ApplicationService whereDescription($value) - * @method static \Illuminate\Database\Eloquent\Builder|ApplicationService whereExposition($value) - * @method static \Illuminate\Database\Eloquent\Builder|ApplicationService whereId($value) - * @method static \Illuminate\Database\Eloquent\Builder|ApplicationService whereName($value) - * @method static \Illuminate\Database\Eloquent\Builder|ApplicationService whereUpdatedAt($value) - * @method static \Illuminate\Database\Query\Builder|ApplicationService withTrashed() - * @method static \Illuminate\Database\Query\Builder|ApplicationService withoutTrashed() - * - * @mixin \Eloquent */ class ApplicationService extends Model { diff --git a/app/AuditLog.php b/app/AuditLog.php index ce58baeb..3259af0c 100644 --- a/app/AuditLog.php +++ b/app/AuditLog.php @@ -9,30 +9,6 @@ /** * App\AuditLog * - * @property int $id - * @property string $description - * @property int|null $subject_id - * @property string|null $subject_type - * @property int|null $user_id - * @property \Illuminate\Support\Collection|null $properties - * @property string|null $host - * @property \Illuminate\Support\Carbon|null $created_at - * @property \Illuminate\Support\Carbon|null $updated_at - * - * @method static \Illuminate\Database\Eloquent\Builder|AuditLog newModelQuery() - * @method static \Illuminate\Database\Eloquent\Builder|AuditLog newQuery() - * @method static \Illuminate\Database\Eloquent\Builder|AuditLog query() - * @method static \Illuminate\Database\Eloquent\Builder|AuditLog whereCreatedAt($value) - * @method static \Illuminate\Database\Eloquent\Builder|AuditLog whereDescription($value) - * @method static \Illuminate\Database\Eloquent\Builder|AuditLog whereHost($value) - * @method static \Illuminate\Database\Eloquent\Builder|AuditLog whereId($value) - * @method static \Illuminate\Database\Eloquent\Builder|AuditLog whereProperties($value) - * @method static \Illuminate\Database\Eloquent\Builder|AuditLog whereSubjectId($value) - * @method static \Illuminate\Database\Eloquent\Builder|AuditLog whereSubjectType($value) - * @method static \Illuminate\Database\Eloquent\Builder|AuditLog whereUpdatedAt($value) - * @method static \Illuminate\Database\Eloquent\Builder|AuditLog whereUserId($value) - * - * @mixin \Eloquent */ class AuditLog extends Model { diff --git a/app/Building.php b/app/Building.php index 51aa4e92..777ead92 100644 --- a/app/Building.php +++ b/app/Building.php @@ -10,49 +10,6 @@ /** * App\Building * - * @property int $id - * @property string $name - * @property string|null $description - * @property \Illuminate\Support\Carbon|null $created_at - * @property \Illuminate\Support\Carbon|null $updated_at - * @property \Illuminate\Support\Carbon|null $deleted_at - * @property int|null $site_id - * @property bool|null $camera - * @property bool|null $badge - * - * @property-read \Illuminate\Database\Eloquent\Collection|array<\App\Peripheral> $buildingPeripherals - * @property-read int|null $building_peripherals_count - * @property-read \Illuminate\Database\Eloquent\Collection|array<\App\Phone> $buildingPhones - * @property-read int|null $building_phones_count - * @property-read \Illuminate\Database\Eloquent\Collection|array<\App\PhysicalServer> $buildingPhysicalServers - * @property-read int|null $building_physical_servers_count - * @property-read \Illuminate\Database\Eloquent\Collection|array<\App\PhysicalSwitch> $buildingPhysicalSwitches - * @property-read int|null $building_physical_switches_count - * @property-read \Illuminate\Database\Eloquent\Collection|array<\App\StorageDevice> $buildingStorageDevices - * @property-read int|null $building_storage_devices_count - * @property-read \Illuminate\Database\Eloquent\Collection|array<\App\Workstation> $buildingWorkstations - * @property-read int|null $building_workstations_count - * @property-read \Illuminate\Database\Eloquent\Collection|array<\App\Bay> $roomBays - * @property-read int|null $room_bays_count - * @property-read \App\Site|null $site - * - * @method static \Illuminate\Database\Eloquent\Builder|Building newModelQuery() - * @method static \Illuminate\Database\Eloquent\Builder|Building newQuery() - * @method static \Illuminate\Database\Query\Builder|Building onlyTrashed() - * @method static \Illuminate\Database\Eloquent\Builder|Building query() - * @method static \Illuminate\Database\Eloquent\Builder|Building whereBadge($value) - * @method static \Illuminate\Database\Eloquent\Builder|Building whereCamera($value) - * @method static \Illuminate\Database\Eloquent\Builder|Building whereCreatedAt($value) - * @method static \Illuminate\Database\Eloquent\Builder|Building whereDeletedAt($value) - * @method static \Illuminate\Database\Eloquent\Builder|Building whereDescription($value) - * @method static \Illuminate\Database\Eloquent\Builder|Building whereId($value) - * @method static \Illuminate\Database\Eloquent\Builder|Building whereName($value) - * @method static \Illuminate\Database\Eloquent\Builder|Building whereSiteId($value) - * @method static \Illuminate\Database\Eloquent\Builder|Building whereUpdatedAt($value) - * @method static \Illuminate\Database\Query\Builder|Building withTrashed() - * @method static \Illuminate\Database\Query\Builder|Building withoutTrashed() - * - * @mixin \Eloquent */ class Building extends Model { diff --git a/app/Database.php b/app/Database.php index 4d2fded2..9a013030 100644 --- a/app/Database.php +++ b/app/Database.php @@ -10,55 +10,6 @@ /** * App\Database * - * @property int $id - * @property string $name - * @property string|null $description - * @property string|null $responsible - * @property string|null $type - * @property int|null $security_need_c - * @property string|null $external - * @property \Illuminate\Support\Carbon|null $created_at - * @property \Illuminate\Support\Carbon|null $updated_at - * @property \Illuminate\Support\Carbon|null $deleted_at - * @property int|null $entity_resp_id - * @property int|null $security_need_i - * @property int|null $security_need_a - * @property int|null $security_need_t - * - * @property-read \Illuminate\Database\Eloquent\Collection|array<\App\Flux> $databaseDestFluxes - * @property-read int|null $database_dest_fluxes_count - * @property-read \Illuminate\Database\Eloquent\Collection|array<\App\Flux> $databaseSourceFluxes - * @property-read int|null $database_source_fluxes_count - * @property-read \Illuminate\Database\Eloquent\Collection|array<\App\MApplication> $databasesMApplications - * @property-read int|null $databases_m_applications_count - * @property-read \Illuminate\Database\Eloquent\Collection|array<\App\Entity> $entities - * @property-read int|null $entities_count - * @property-read \App\Entity|null $entity_resp - * @property-read \Illuminate\Database\Eloquent\Collection|array<\App\Information> $informations - * @property-read int|null $informations_count - * - * @method static \Illuminate\Database\Eloquent\Builder|Database newModelQuery() - * @method static \Illuminate\Database\Eloquent\Builder|Database newQuery() - * @method static \Illuminate\Database\Query\Builder|Database onlyTrashed() - * @method static \Illuminate\Database\Eloquent\Builder|Database query() - * @method static \Illuminate\Database\Eloquent\Builder|Database whereCreatedAt($value) - * @method static \Illuminate\Database\Eloquent\Builder|Database whereDeletedAt($value) - * @method static \Illuminate\Database\Eloquent\Builder|Database whereDescription($value) - * @method static \Illuminate\Database\Eloquent\Builder|Database whereEntityRespId($value) - * @method static \Illuminate\Database\Eloquent\Builder|Database whereExternal($value) - * @method static \Illuminate\Database\Eloquent\Builder|Database whereId($value) - * @method static \Illuminate\Database\Eloquent\Builder|Database whereName($value) - * @method static \Illuminate\Database\Eloquent\Builder|Database whereResponsible($value) - * @method static \Illuminate\Database\Eloquent\Builder|Database whereSecurityNeedA($value) - * @method static \Illuminate\Database\Eloquent\Builder|Database whereSecurityNeedC($value) - * @method static \Illuminate\Database\Eloquent\Builder|Database whereSecurityNeedI($value) - * @method static \Illuminate\Database\Eloquent\Builder|Database whereSecurityNeedT($value) - * @method static \Illuminate\Database\Eloquent\Builder|Database whereType($value) - * @method static \Illuminate\Database\Eloquent\Builder|Database whereUpdatedAt($value) - * @method static \Illuminate\Database\Query\Builder|Database withTrashed() - * @method static \Illuminate\Database\Query\Builder|Database withoutTrashed() - * - * @mixin \Eloquent */ class Database extends Model { diff --git a/app/Dnsserver.php b/app/Dnsserver.php index 6c97d0fe..18e4b319 100644 --- a/app/Dnsserver.php +++ b/app/Dnsserver.php @@ -10,25 +10,6 @@ /** * App\Dnsserver * - * @property int $id - * @property string $name - * @property string|null $description - * @property \Illuminate\Support\Carbon|null $created_at - * @property \Illuminate\Support\Carbon|null $updated_at - * @property \Illuminate\Support\Carbon|null $deleted_at - * @method static \Illuminate\Database\Eloquent\Builder|Dnsserver newModelQuery() - * @method static \Illuminate\Database\Eloquent\Builder|Dnsserver newQuery() - * @method static \Illuminate\Database\Query\Builder|Dnsserver onlyTrashed() - * @method static \Illuminate\Database\Eloquent\Builder|Dnsserver query() - * @method static \Illuminate\Database\Eloquent\Builder|Dnsserver whereCreatedAt($value) - * @method static \Illuminate\Database\Eloquent\Builder|Dnsserver whereDeletedAt($value) - * @method static \Illuminate\Database\Eloquent\Builder|Dnsserver whereDescription($value) - * @method static \Illuminate\Database\Eloquent\Builder|Dnsserver whereId($value) - * @method static \Illuminate\Database\Eloquent\Builder|Dnsserver whereName($value) - * @method static \Illuminate\Database\Eloquent\Builder|Dnsserver whereUpdatedAt($value) - * @method static \Illuminate\Database\Query\Builder|Dnsserver withTrashed() - * @method static \Illuminate\Database\Query\Builder|Dnsserver withoutTrashed() - * @mixin \Eloquent */ class Dnsserver extends Model { diff --git a/app/DomaineAd.php b/app/DomaineAd.php index 56268191..ab849ded 100644 --- a/app/DomaineAd.php +++ b/app/DomaineAd.php @@ -10,38 +10,6 @@ /** * App\DomaineAd * - * @property int $id - * @property string $name - * @property string|null $description - * @property int|null $domain_ctrl_cnt - * @property int|null $user_count - * @property int|null $machine_count - * @property string|null $relation_inter_domaine - * @property \Illuminate\Support\Carbon|null $created_at - * @property \Illuminate\Support\Carbon|null $updated_at - * @property \Illuminate\Support\Carbon|null $deleted_at - * - * @property-read \Illuminate\Database\Eloquent\Collection|array<\App\ForestAd> $domainesForestAds - * @property-read int|null $domaines_forest_ads_count - * - * @method static \Illuminate\Database\Eloquent\Builder|DomaineAd newModelQuery() - * @method static \Illuminate\Database\Eloquent\Builder|DomaineAd newQuery() - * @method static \Illuminate\Database\Query\Builder|DomaineAd onlyTrashed() - * @method static \Illuminate\Database\Eloquent\Builder|DomaineAd query() - * @method static \Illuminate\Database\Eloquent\Builder|DomaineAd whereCreatedAt($value) - * @method static \Illuminate\Database\Eloquent\Builder|DomaineAd whereDeletedAt($value) - * @method static \Illuminate\Database\Eloquent\Builder|DomaineAd whereDescription($value) - * @method static \Illuminate\Database\Eloquent\Builder|DomaineAd whereDomainCtrlCnt($value) - * @method static \Illuminate\Database\Eloquent\Builder|DomaineAd whereId($value) - * @method static \Illuminate\Database\Eloquent\Builder|DomaineAd whereMachineCount($value) - * @method static \Illuminate\Database\Eloquent\Builder|DomaineAd whereName($value) - * @method static \Illuminate\Database\Eloquent\Builder|DomaineAd whereRelationInterDomaine($value) - * @method static \Illuminate\Database\Eloquent\Builder|DomaineAd whereUpdatedAt($value) - * @method static \Illuminate\Database\Eloquent\Builder|DomaineAd whereUserCount($value) - * @method static \Illuminate\Database\Query\Builder|DomaineAd withTrashed() - * @method static \Illuminate\Database\Query\Builder|DomaineAd withoutTrashed() - * - * @mixin \Eloquent */ class DomaineAd extends Model { diff --git a/app/Entity.php b/app/Entity.php index fa2566d7..910bcad9 100644 --- a/app/Entity.php +++ b/app/Entity.php @@ -10,46 +10,6 @@ /** * App\Entity * - * @property int $id - * @property string $name - * @property string|null $security_level - * @property string|null $contact_point - * @property string|null $description - * @property string|null $entity_type - * @property bool|false $is_external - * @property \Illuminate\Support\Carbon|null $created_at - * @property \Illuminate\Support\Carbon|null $updated_at - * @property \Illuminate\Support\Carbon|null $deleted_at - * - * @property-read \Illuminate\Database\Eloquent\Collection|array<\App\Relation> $destinationRelations - * @property-read int|null $destination_relations_count - * @property-read \Illuminate\Database\Eloquent\Collection|array<\App\MApplication> $entitiesMApplications - * @property-read int|null $entities_m_applications_count - * @property-read \Illuminate\Database\Eloquent\Collection|array<\App\Process> $entitiesProcesses - * @property-read int|null $entities_processes_count - * @property-read \Illuminate\Database\Eloquent\Collection|array<\App\Database> $databases - * @property-read int|null $entity_resp_databases_count - * @property-read \Illuminate\Database\Eloquent\Collection|array<\App\MApplication> $applications - * @property-read int|null $entity_resp_m_applications_count - * @property-read \Illuminate\Database\Eloquent\Collection|array<\App\Relation> $sourceRelations - * @property-read int|null $source_relations_count - * - * @method static \Illuminate\Database\Eloquent\Builder|Entity newModelQuery() - * @method static \Illuminate\Database\Eloquent\Builder|Entity newQuery() - * @method static \Illuminate\Database\Query\Builder|Entity onlyTrashed() - * @method static \Illuminate\Database\Eloquent\Builder|Entity query() - * @method static \Illuminate\Database\Eloquent\Builder|Entity whereContactPoint($value) - * @method static \Illuminate\Database\Eloquent\Builder|Entity whereCreatedAt($value) - * @method static \Illuminate\Database\Eloquent\Builder|Entity whereDeletedAt($value) - * @method static \Illuminate\Database\Eloquent\Builder|Entity whereDescription($value) - * @method static \Illuminate\Database\Eloquent\Builder|Entity whereId($value) - * @method static \Illuminate\Database\Eloquent\Builder|Entity whereName($value) - * @method static \Illuminate\Database\Eloquent\Builder|Entity whereSecurityLevel($value) - * @method static \Illuminate\Database\Eloquent\Builder|Entity whereUpdatedAt($value) - * @method static \Illuminate\Database\Query\Builder|Entity withTrashed() - * @method static \Illuminate\Database\Query\Builder|Entity withoutTrashed() - * - * @mixin \Eloquent */ class Entity extends Model { diff --git a/app/ExternalConnectedEntity.php b/app/ExternalConnectedEntity.php index d31ded2e..c4ede276 100644 --- a/app/ExternalConnectedEntity.php +++ b/app/ExternalConnectedEntity.php @@ -10,32 +10,6 @@ /** * App\ExternalConnectedEntity * - * @property int $id - * @property string $name - * @property string|null $responsible_sec - * @property string|null $contacts - * @property \Illuminate\Support\Carbon|null $created_at - * @property \Illuminate\Support\Carbon|null $updated_at - * @property \Illuminate\Support\Carbon|null $deleted_at - * - * @property-read \Illuminate\Database\Eloquent\Collection|array<\App\Network> $connected_networks - * @property-read int|null $connected_networks_count - * - * @method static \Illuminate\Database\Eloquent\Builder|ExternalConnectedEntity newModelQuery() - * @method static \Illuminate\Database\Eloquent\Builder|ExternalConnectedEntity newQuery() - * @method static \Illuminate\Database\Query\Builder|ExternalConnectedEntity onlyTrashed() - * @method static \Illuminate\Database\Eloquent\Builder|ExternalConnectedEntity query() - * @method static \Illuminate\Database\Eloquent\Builder|ExternalConnectedEntity whereContacts($value) - * @method static \Illuminate\Database\Eloquent\Builder|ExternalConnectedEntity whereCreatedAt($value) - * @method static \Illuminate\Database\Eloquent\Builder|ExternalConnectedEntity whereDeletedAt($value) - * @method static \Illuminate\Database\Eloquent\Builder|ExternalConnectedEntity whereId($value) - * @method static \Illuminate\Database\Eloquent\Builder|ExternalConnectedEntity whereName($value) - * @method static \Illuminate\Database\Eloquent\Builder|ExternalConnectedEntity whereResponsibleSec($value) - * @method static \Illuminate\Database\Eloquent\Builder|ExternalConnectedEntity whereUpdatedAt($value) - * @method static \Illuminate\Database\Query\Builder|ExternalConnectedEntity withTrashed() - * @method static \Illuminate\Database\Query\Builder|ExternalConnectedEntity withoutTrashed() - * - * @mixin \Eloquent */ class ExternalConnectedEntity extends Model { diff --git a/app/ForestAd.php b/app/ForestAd.php index 7aa0e2d8..801676b0 100644 --- a/app/ForestAd.php +++ b/app/ForestAd.php @@ -10,33 +10,6 @@ /** * App\ForestAd * - * @property int $id - * @property string $name - * @property string|null $description - * @property \Illuminate\Support\Carbon|null $created_at - * @property \Illuminate\Support\Carbon|null $updated_at - * @property \Illuminate\Support\Carbon|null $deleted_at - * @property int|null $zone_admin_id - * - * @property-read \Illuminate\Database\Eloquent\Collection|array<\App\DomaineAd> $domaines - * @property-read int|null $domaines_count - * @property-read \App\ZoneAdmin|null $zone_admin - * - * @method static \Illuminate\Database\Eloquent\Builder|ForestAd newModelQuery() - * @method static \Illuminate\Database\Eloquent\Builder|ForestAd newQuery() - * @method static \Illuminate\Database\Query\Builder|ForestAd onlyTrashed() - * @method static \Illuminate\Database\Eloquent\Builder|ForestAd query() - * @method static \Illuminate\Database\Eloquent\Builder|ForestAd whereCreatedAt($value) - * @method static \Illuminate\Database\Eloquent\Builder|ForestAd whereDeletedAt($value) - * @method static \Illuminate\Database\Eloquent\Builder|ForestAd whereDescription($value) - * @method static \Illuminate\Database\Eloquent\Builder|ForestAd whereId($value) - * @method static \Illuminate\Database\Eloquent\Builder|ForestAd whereName($value) - * @method static \Illuminate\Database\Eloquent\Builder|ForestAd whereUpdatedAt($value) - * @method static \Illuminate\Database\Eloquent\Builder|ForestAd whereZoneAdminId($value) - * @method static \Illuminate\Database\Query\Builder|ForestAd withTrashed() - * @method static \Illuminate\Database\Query\Builder|ForestAd withoutTrashed() - * - * @mixin \Eloquent */ class ForestAd extends Model { diff --git a/app/Gateway.php b/app/Gateway.php index f3e5e789..00740bfc 100644 --- a/app/Gateway.php +++ b/app/Gateway.php @@ -10,34 +10,6 @@ /** * App\Gateway * - * @property int $id - * @property string $name - * @property string|null $description - * @property string|null $ip - * @property string|null $authentification - * @property \Illuminate\Support\Carbon|null $created_at - * @property \Illuminate\Support\Carbon|null $updated_at - * @property \Illuminate\Support\Carbon|null $deleted_at - * - * @property-read \Illuminate\Database\Eloquent\Collection|array<\App\Subnetwork> $subnetworks - * @property-read int|null $gateway_subnetworks_count - * - * @method static \Illuminate\Database\Eloquent\Builder|Gateway newModelQuery() - * @method static \Illuminate\Database\Eloquent\Builder|Gateway newQuery() - * @method static \Illuminate\Database\Query\Builder|Gateway onlyTrashed() - * @method static \Illuminate\Database\Eloquent\Builder|Gateway query() - * @method static \Illuminate\Database\Eloquent\Builder|Gateway whereAuthentification($value) - * @method static \Illuminate\Database\Eloquent\Builder|Gateway whereCreatedAt($value) - * @method static \Illuminate\Database\Eloquent\Builder|Gateway whereDeletedAt($value) - * @method static \Illuminate\Database\Eloquent\Builder|Gateway whereDescription($value) - * @method static \Illuminate\Database\Eloquent\Builder|Gateway whereId($value) - * @method static \Illuminate\Database\Eloquent\Builder|Gateway whereIp($value) - * @method static \Illuminate\Database\Eloquent\Builder|Gateway whereName($value) - * @method static \Illuminate\Database\Eloquent\Builder|Gateway whereUpdatedAt($value) - * @method static \Illuminate\Database\Query\Builder|Gateway withTrashed() - * @method static \Illuminate\Database\Query\Builder|Gateway withoutTrashed() - * - * @mixin \Eloquent */ class Gateway extends Model { diff --git a/app/Http/Controllers/Admin/GlobalSearchController.php b/app/Http/Controllers/Admin/GlobalSearchController.php index 3e61300b..e710f4cd 100644 --- a/app/Http/Controllers/Admin/GlobalSearchController.php +++ b/app/Http/Controllers/Admin/GlobalSearchController.php @@ -55,18 +55,21 @@ class GlobalSearchController extends Controller 'ApplicationModule' => 'cruds.applicationModule.title', 'MacroProcessus' => 'cruds.macroProcessus.title', 'Certificate' => 'cruds.certificate.title', + 'Activity' => 'cruds.activity.title', + 'DataProcessing' => 'cruds.dataProcessing.title', + 'SecurityControl' => 'cruds.securityControl.title', ]; public function search(Request $request) { $term = $request->input('search'); - if ($term === null) { - return; - } - $searchableData = []; + if (($term === null)||(strlen($term)<3)) { + return view('admin.search', compact('searchableData')); + } + foreach ($this->models as $model => $translation) { $modelClass = 'App\\' . $model; $query = $modelClass::query(); @@ -77,12 +80,12 @@ public function search(Request $request) $query->orWhere($field, 'LIKE', '%' . $term . '%'); } - $results = $query->take(10) - ->get(); + $results = $query->take(100)->get(); foreach ($results as $result) { - $parsedData = $result->only($fields); - $parsedData['model'] = trans($translation); + $parsedData['data'] = $result->only($fields); + $parsedData['model'] = $model; + $parsedData['name'] = trans($translation); $parsedData['fields'] = $fields; $formattedFields = []; @@ -102,6 +105,6 @@ public function search(Request $request) } } - return response()->json(['results' => $searchableData]); + return view('admin.search', compact('searchableData')); } } diff --git a/app/Information.php b/app/Information.php index 3572703f..89599ff4 100644 --- a/app/Information.php +++ b/app/Information.php @@ -10,50 +10,6 @@ /** * App\Information * - * @property int $id - * @property string $name - * @property string|null $description - * @property string|null $owner - * @property string|null $administrator - * @property string|null $storage - * @property int|null $security_need_c - * @property string|null $sensitivity - * @property string|null $constraints - * @property \Illuminate\Support\Carbon|null $created_at - * @property \Illuminate\Support\Carbon|null $updated_at - * @property \Illuminate\Support\Carbon|null $deleted_at - * @property int|null $security_need_i - * @property int|null $security_need_a - * @property int|null $security_need_t - * - * @property-read \Illuminate\Database\Eloquent\Collection|array<\App\Database> $informationsDatabases - * @property-read int|null $informations_databases_count - * @property-read \Illuminate\Database\Eloquent\Collection|array<\App\Process> $processes - * @property-read int|null $processes_count - * - * @method static \Illuminate\Database\Eloquent\Builder|Information newModelQuery() - * @method static \Illuminate\Database\Eloquent\Builder|Information newQuery() - * @method static \Illuminate\Database\Query\Builder|Information onlyTrashed() - * @method static \Illuminate\Database\Eloquent\Builder|Information query() - * @method static \Illuminate\Database\Eloquent\Builder|Information whereAdministrator($value) - * @method static \Illuminate\Database\Eloquent\Builder|Information whereConstraints($value) - * @method static \Illuminate\Database\Eloquent\Builder|Information whereCreatedAt($value) - * @method static \Illuminate\Database\Eloquent\Builder|Information whereDeletedAt($value) - * @method static \Illuminate\Database\Eloquent\Builder|Information whereDescription($value) - * @method static \Illuminate\Database\Eloquent\Builder|Information whereId($value) - * @method static \Illuminate\Database\Eloquent\Builder|Information whereName($value) - * @method static \Illuminate\Database\Eloquent\Builder|Information whereOwner($value) - * @method static \Illuminate\Database\Eloquent\Builder|Information whereSecurityNeedA($value) - * @method static \Illuminate\Database\Eloquent\Builder|Information whereSecurityNeedC($value) - * @method static \Illuminate\Database\Eloquent\Builder|Information whereSecurityNeedI($value) - * @method static \Illuminate\Database\Eloquent\Builder|Information whereSecurityNeedT($value) - * @method static \Illuminate\Database\Eloquent\Builder|Information whereSensitivity($value) - * @method static \Illuminate\Database\Eloquent\Builder|Information whereStorage($value) - * @method static \Illuminate\Database\Eloquent\Builder|Information whereUpdatedAt($value) - * @method static \Illuminate\Database\Query\Builder|Information withTrashed() - * @method static \Illuminate\Database\Query\Builder|Information withoutTrashed() - * - * @mixin \Eloquent */ class Information extends Model { diff --git a/app/Lan.php b/app/Lan.php index 7ee37aab..0007d6e6 100644 --- a/app/Lan.php +++ b/app/Lan.php @@ -10,32 +10,6 @@ /** * App\Lan * - * @property int $id - * @property string $name - * @property string|null $description - * @property \Illuminate\Support\Carbon|null $created_at - * @property \Illuminate\Support\Carbon|null $updated_at - * @property \Illuminate\Support\Carbon|null $deleted_at - * - * @property-read \Illuminate\Database\Eloquent\Collection|array<\App\Man> $lansMen - * @property-read int|null $lans_men_count - * @property-read \Illuminate\Database\Eloquent\Collection|array<\App\Wan> $lansWans - * @property-read int|null $lans_wans_count - * - * @method static \Illuminate\Database\Eloquent\Builder|Lan newModelQuery() - * @method static \Illuminate\Database\Eloquent\Builder|Lan newQuery() - * @method static \Illuminate\Database\Query\Builder|Lan onlyTrashed() - * @method static \Illuminate\Database\Eloquent\Builder|Lan query() - * @method static \Illuminate\Database\Eloquent\Builder|Lan whereCreatedAt($value) - * @method static \Illuminate\Database\Eloquent\Builder|Lan whereDeletedAt($value) - * @method static \Illuminate\Database\Eloquent\Builder|Lan whereDescription($value) - * @method static \Illuminate\Database\Eloquent\Builder|Lan whereId($value) - * @method static \Illuminate\Database\Eloquent\Builder|Lan whereName($value) - * @method static \Illuminate\Database\Eloquent\Builder|Lan whereUpdatedAt($value) - * @method static \Illuminate\Database\Query\Builder|Lan withTrashed() - * @method static \Illuminate\Database\Query\Builder|Lan withoutTrashed() - * - * @mixin \Eloquent */ class Lan extends Model { diff --git a/app/MApplication.php b/app/MApplication.php index 6e36d442..2d79093e 100644 --- a/app/MApplication.php +++ b/app/MApplication.php @@ -18,9 +18,9 @@ class MApplication extends Model public $table = 'm_applications'; public static $searchable = [ - 'vendor', 'name', 'description', + 'vendor', 'responsible', 'editor', 'functional_referent', diff --git a/app/MacroProcessus.php b/app/MacroProcessus.php index bca143b5..78f73210 100644 --- a/app/MacroProcessus.php +++ b/app/MacroProcessus.php @@ -10,42 +10,6 @@ /** * App\MacroProcessus * - * @property int $id - * @property string $name - * @property string|null $description - * @property string|null $io_elements - * @property int|null $security_need_c - * @property string|null $owner - * @property \Illuminate\Support\Carbon|null $created_at - * @property \Illuminate\Support\Carbon|null $updated_at - * @property \Illuminate\Support\Carbon|null $deleted_at - * @property int|null $security_need_i - * @property int|null $security_need_a - * @property int|null $security_need_t - * - * @property-read \Illuminate\Database\Eloquent\Collection|array<\App\Process> $processes - * @property-read int|null $processes_count - * - * @method static \Illuminate\Database\Eloquent\Builder|MacroProcessus newModelQuery() - * @method static \Illuminate\Database\Eloquent\Builder|MacroProcessus newQuery() - * @method static \Illuminate\Database\Query\Builder|MacroProcessus onlyTrashed() - * @method static \Illuminate\Database\Eloquent\Builder|MacroProcessus query() - * @method static \Illuminate\Database\Eloquent\Builder|MacroProcessus whereCreatedAt($value) - * @method static \Illuminate\Database\Eloquent\Builder|MacroProcessus whereDeletedAt($value) - * @method static \Illuminate\Database\Eloquent\Builder|MacroProcessus whereDescription($value) - * @method static \Illuminate\Database\Eloquent\Builder|MacroProcessus whereId($value) - * @method static \Illuminate\Database\Eloquent\Builder|MacroProcessus whereIoElements($value) - * @method static \Illuminate\Database\Eloquent\Builder|MacroProcessus whereName($value) - * @method static \Illuminate\Database\Eloquent\Builder|MacroProcessus whereOwner($value) - * @method static \Illuminate\Database\Eloquent\Builder|MacroProcessus whereSecurityNeedA($value) - * @method static \Illuminate\Database\Eloquent\Builder|MacroProcessus whereSecurityNeedC($value) - * @method static \Illuminate\Database\Eloquent\Builder|MacroProcessus whereSecurityNeedI($value) - * @method static \Illuminate\Database\Eloquent\Builder|MacroProcessus whereSecurityNeedT($value) - * @method static \Illuminate\Database\Eloquent\Builder|MacroProcessus whereUpdatedAt($value) - * @method static \Illuminate\Database\Query\Builder|MacroProcessus withTrashed() - * @method static \Illuminate\Database\Query\Builder|MacroProcessus withoutTrashed() - * - * @mixin \Eloquent */ class MacroProcessus extends Model { diff --git a/app/Network.php b/app/Network.php index e4a73d9a..c70164e2 100644 --- a/app/Network.php +++ b/app/Network.php @@ -10,40 +10,6 @@ /** * App\Network * - * @property int $id - * @property string $name - * @property string|null $protocol_type - * @property string|null $responsible - * @property string|null $responsible_sec - * @property int|null $security_need - * @property string|null $description - * @property \Illuminate\Support\Carbon|null $created_at - * @property \Illuminate\Support\Carbon|null $updated_at - * @property \Illuminate\Support\Carbon|null $deleted_at - * - * @property-read \Illuminate\Database\Eloquent\Collection|array<\App\ExternalConnectedEntity> $externalConnectedEntities - * @property-read int|null $connected_networks_external_connected_entities_count - * @property-read \Illuminate\Database\Eloquent\Collection|array<\App\Subnetwork> $subnetworks - * @property-read int|null $subnetworks_count - * - * @method static \Illuminate\Database\Eloquent\Builder|Network newModelQuery() - * @method static \Illuminate\Database\Eloquent\Builder|Network newQuery() - * @method static \Illuminate\Database\Query\Builder|Network onlyTrashed() - * @method static \Illuminate\Database\Eloquent\Builder|Network query() - * @method static \Illuminate\Database\Eloquent\Builder|Network whereCreatedAt($value) - * @method static \Illuminate\Database\Eloquent\Builder|Network whereDeletedAt($value) - * @method static \Illuminate\Database\Eloquent\Builder|Network whereDescription($value) - * @method static \Illuminate\Database\Eloquent\Builder|Network whereId($value) - * @method static \Illuminate\Database\Eloquent\Builder|Network whereName($value) - * @method static \Illuminate\Database\Eloquent\Builder|Network whereProtocolType($value) - * @method static \Illuminate\Database\Eloquent\Builder|Network whereResponsible($value) - * @method static \Illuminate\Database\Eloquent\Builder|Network whereResponsibleSec($value) - * @method static \Illuminate\Database\Eloquent\Builder|Network whereSecurityNeed($value) - * @method static \Illuminate\Database\Eloquent\Builder|Network whereUpdatedAt($value) - * @method static \Illuminate\Database\Query\Builder|Network withTrashed() - * @method static \Illuminate\Database\Query\Builder|Network withoutTrashed() - * - * @mixin \Eloquent */ class Network extends Model { diff --git a/app/NetworkSwitch.php b/app/NetworkSwitch.php index d816bdff..e081a09c 100644 --- a/app/NetworkSwitch.php +++ b/app/NetworkSwitch.php @@ -10,29 +10,6 @@ /** * App\NetworkSwitch * - * @property int $id - * @property string $name - * @property string|null $ip - * @property string|null $description - * @property \Illuminate\Support\Carbon|null $created_at - * @property \Illuminate\Support\Carbon|null $updated_at - * @property \Illuminate\Support\Carbon|null $deleted_at - * - * @method static \Illuminate\Database\Eloquent\Builder|NetworkSwitch newModelQuery() - * @method static \Illuminate\Database\Eloquent\Builder|NetworkSwitch newQuery() - * @method static \Illuminate\Database\Query\Builder|NetworkSwitch onlyTrashed() - * @method static \Illuminate\Database\Eloquent\Builder|NetworkSwitch query() - * @method static \Illuminate\Database\Eloquent\Builder|NetworkSwitch whereCreatedAt($value) - * @method static \Illuminate\Database\Eloquent\Builder|NetworkSwitch whereDeletedAt($value) - * @method static \Illuminate\Database\Eloquent\Builder|NetworkSwitch whereDescription($value) - * @method static \Illuminate\Database\Eloquent\Builder|NetworkSwitch whereId($value) - * @method static \Illuminate\Database\Eloquent\Builder|NetworkSwitch whereIp($value) - * @method static \Illuminate\Database\Eloquent\Builder|NetworkSwitch whereName($value) - * @method static \Illuminate\Database\Eloquent\Builder|NetworkSwitch whereUpdatedAt($value) - * @method static \Illuminate\Database\Query\Builder|NetworkSwitch withTrashed() - * @method static \Illuminate\Database\Query\Builder|NetworkSwitch withoutTrashed() - * - * @mixin \Eloquent */ class NetworkSwitch extends Model { diff --git a/app/Operation.php b/app/Operation.php index 8bdc17b7..547e77de 100644 --- a/app/Operation.php +++ b/app/Operation.php @@ -10,34 +10,6 @@ /** * App\Operation * - * @property int $id - * @property string $name - * @property string|null $description - * @property \Illuminate\Support\Carbon|null $created_at - * @property \Illuminate\Support\Carbon|null $updated_at - * @property \Illuminate\Support\Carbon|null $deleted_at - * - * @property-read \Illuminate\Database\Eloquent\Collection|array<\App\Actor> $actors - * @property-read int|null $actors_count - * @property-read \Illuminate\Database\Eloquent\Collection|array<\App\Activity> $activities - * @property-read int|null $operations_activities_count - * @property-read \Illuminate\Database\Eloquent\Collection|array<\App\Task> $tasks - * @property-read int|null $tasks_count - * - * @method static \Illuminate\Database\Eloquent\Builder|Operation newModelQuery() - * @method static \Illuminate\Database\Eloquent\Builder|Operation newQuery() - * @method static \Illuminate\Database\Query\Builder|Operation onlyTrashed() - * @method static \Illuminate\Database\Eloquent\Builder|Operation query() - * @method static \Illuminate\Database\Eloquent\Builder|Operation whereCreatedAt($value) - * @method static \Illuminate\Database\Eloquent\Builder|Operation whereDeletedAt($value) - * @method static \Illuminate\Database\Eloquent\Builder|Operation whereDescription($value) - * @method static \Illuminate\Database\Eloquent\Builder|Operation whereId($value) - * @method static \Illuminate\Database\Eloquent\Builder|Operation whereName($value) - * @method static \Illuminate\Database\Eloquent\Builder|Operation whereUpdatedAt($value) - * @method static \Illuminate\Database\Query\Builder|Operation withTrashed() - * @method static \Illuminate\Database\Query\Builder|Operation withoutTrashed() - * - * @mixin \Eloquent */ class Operation extends Model { diff --git a/app/Permission.php b/app/Permission.php index fdf659a6..10c3bb9a 100644 --- a/app/Permission.php +++ b/app/Permission.php @@ -9,25 +9,6 @@ /** * App\Permission * - * @property int $id - * @property string|null $title - * @property \Illuminate\Support\Carbon|null $created_at - * @property \Illuminate\Support\Carbon|null $updated_at - * @property \Illuminate\Support\Carbon|null $deleted_at - * - * @method static \Illuminate\Database\Eloquent\Builder|Permission newModelQuery() - * @method static \Illuminate\Database\Eloquent\Builder|Permission newQuery() - * @method static \Illuminate\Database\Query\Builder|Permission onlyTrashed() - * @method static \Illuminate\Database\Eloquent\Builder|Permission query() - * @method static \Illuminate\Database\Eloquent\Builder|Permission whereCreatedAt($value) - * @method static \Illuminate\Database\Eloquent\Builder|Permission whereDeletedAt($value) - * @method static \Illuminate\Database\Eloquent\Builder|Permission whereId($value) - * @method static \Illuminate\Database\Eloquent\Builder|Permission whereTitle($value) - * @method static \Illuminate\Database\Eloquent\Builder|Permission whereUpdatedAt($value) - * @method static \Illuminate\Database\Query\Builder|Permission withTrashed() - * @method static \Illuminate\Database\Query\Builder|Permission withoutTrashed() - * - * @mixin \Eloquent */ class Permission extends Model { diff --git a/app/Phone.php b/app/Phone.php index 6dd1f4a0..7076b30f 100644 --- a/app/Phone.php +++ b/app/Phone.php @@ -10,38 +10,6 @@ /** * App\Phone * - * @property int $id - * @property string $name - * @property string|null $description - * @property string|null $type - * @property \Illuminate\Support\Carbon|null $created_at - * @property \Illuminate\Support\Carbon|null $updated_at - * @property \Illuminate\Support\Carbon|null $deleted_at - * @property int|null $site_id - * @property int|null $building_id - * @property int|null $physical_switch_id - * - * @property-read \App\Building|null $building - * @property-read \App\Site|null $site - * - * @method static \Illuminate\Database\Eloquent\Builder|Phone newModelQuery() - * @method static \Illuminate\Database\Eloquent\Builder|Phone newQuery() - * @method static \Illuminate\Database\Query\Builder|Phone onlyTrashed() - * @method static \Illuminate\Database\Eloquent\Builder|Phone query() - * @method static \Illuminate\Database\Eloquent\Builder|Phone whereBuildingId($value) - * @method static \Illuminate\Database\Eloquent\Builder|Phone whereCreatedAt($value) - * @method static \Illuminate\Database\Eloquent\Builder|Phone whereDeletedAt($value) - * @method static \Illuminate\Database\Eloquent\Builder|Phone whereDescription($value) - * @method static \Illuminate\Database\Eloquent\Builder|Phone whereId($value) - * @method static \Illuminate\Database\Eloquent\Builder|Phone whereName($value) - * @method static \Illuminate\Database\Eloquent\Builder|Phone wherePhysicalSwitchId($value) - * @method static \Illuminate\Database\Eloquent\Builder|Phone whereSiteId($value) - * @method static \Illuminate\Database\Eloquent\Builder|Phone whereType($value) - * @method static \Illuminate\Database\Eloquent\Builder|Phone whereUpdatedAt($value) - * @method static \Illuminate\Database\Query\Builder|Phone withTrashed() - * @method static \Illuminate\Database\Query\Builder|Phone withoutTrashed() - * - * @mixin \Eloquent */ class Phone extends Model { diff --git a/app/PhysicalRouter.php b/app/PhysicalRouter.php index 97b6325f..a0a5b65b 100644 --- a/app/PhysicalRouter.php +++ b/app/PhysicalRouter.php @@ -10,41 +10,6 @@ /** * App\PhysicalRouter * - * @property int $id - * @property string|null $description - * @property string|null $type - * @property \Illuminate\Support\Carbon|null $created_at - * @property \Illuminate\Support\Carbon|null $updated_at - * @property \Illuminate\Support\Carbon|null $deleted_at - * @property int|null $site_id - * @property int|null $building_id - * @property int|null $bay_id - * @property string|null $name - * - * @property-read \App\Bay|null $bay - * @property-read \App\Building|null $building - * @property-read \App\Site|null $site - * @property-read \Illuminate\Database\Eloquent\Collection|array<\App\Vlan> $vlans - * @property-read int|null $vlans_count - * - * @method static \Illuminate\Database\Eloquent\Builder|PhysicalRouter newModelQuery() - * @method static \Illuminate\Database\Eloquent\Builder|PhysicalRouter newQuery() - * @method static \Illuminate\Database\Query\Builder|PhysicalRouter onlyTrashed() - * @method static \Illuminate\Database\Eloquent\Builder|PhysicalRouter query() - * @method static \Illuminate\Database\Eloquent\Builder|PhysicalRouter whereBayId($value) - * @method static \Illuminate\Database\Eloquent\Builder|PhysicalRouter whereBuildingId($value) - * @method static \Illuminate\Database\Eloquent\Builder|PhysicalRouter whereCreatedAt($value) - * @method static \Illuminate\Database\Eloquent\Builder|PhysicalRouter whereDeletedAt($value) - * @method static \Illuminate\Database\Eloquent\Builder|PhysicalRouter whereDescription($value) - * @method static \Illuminate\Database\Eloquent\Builder|PhysicalRouter whereId($value) - * @method static \Illuminate\Database\Eloquent\Builder|PhysicalRouter whereName($value) - * @method static \Illuminate\Database\Eloquent\Builder|PhysicalRouter whereSiteId($value) - * @method static \Illuminate\Database\Eloquent\Builder|PhysicalRouter whereType($value) - * @method static \Illuminate\Database\Eloquent\Builder|PhysicalRouter whereUpdatedAt($value) - * @method static \Illuminate\Database\Query\Builder|PhysicalRouter withTrashed() - * @method static \Illuminate\Database\Query\Builder|PhysicalRouter withoutTrashed() - * - * @mixin \Eloquent */ class PhysicalRouter extends Model { diff --git a/app/PhysicalSecurityDevice.php b/app/PhysicalSecurityDevice.php index 09670921..37112386 100644 --- a/app/PhysicalSecurityDevice.php +++ b/app/PhysicalSecurityDevice.php @@ -10,39 +10,6 @@ /** * App\PhysicalSecurityDevice * - * @property int $id - * @property string $name - * @property string|null $type - * @property string|null $description - * @property \Illuminate\Support\Carbon|null $created_at - * @property \Illuminate\Support\Carbon|null $updated_at - * @property \Illuminate\Support\Carbon|null $deleted_at - * @property int|null $site_id - * @property int|null $building_id - * @property int|null $bay_id - * - * @property-read \App\Bay|null $bay - * @property-read \App\Building|null $building - * @property-read \App\Site|null $site - * - * @method static \Illuminate\Database\Eloquent\Builder|PhysicalSecurityDevice newModelQuery() - * @method static \Illuminate\Database\Eloquent\Builder|PhysicalSecurityDevice newQuery() - * @method static \Illuminate\Database\Query\Builder|PhysicalSecurityDevice onlyTrashed() - * @method static \Illuminate\Database\Eloquent\Builder|PhysicalSecurityDevice query() - * @method static \Illuminate\Database\Eloquent\Builder|PhysicalSecurityDevice whereBayId($value) - * @method static \Illuminate\Database\Eloquent\Builder|PhysicalSecurityDevice whereBuildingId($value) - * @method static \Illuminate\Database\Eloquent\Builder|PhysicalSecurityDevice whereCreatedAt($value) - * @method static \Illuminate\Database\Eloquent\Builder|PhysicalSecurityDevice whereDeletedAt($value) - * @method static \Illuminate\Database\Eloquent\Builder|PhysicalSecurityDevice whereDescription($value) - * @method static \Illuminate\Database\Eloquent\Builder|PhysicalSecurityDevice whereId($value) - * @method static \Illuminate\Database\Eloquent\Builder|PhysicalSecurityDevice whereName($value) - * @method static \Illuminate\Database\Eloquent\Builder|PhysicalSecurityDevice whereSiteId($value) - * @method static \Illuminate\Database\Eloquent\Builder|PhysicalSecurityDevice whereType($value) - * @method static \Illuminate\Database\Eloquent\Builder|PhysicalSecurityDevice whereUpdatedAt($value) - * @method static \Illuminate\Database\Query\Builder|PhysicalSecurityDevice withTrashed() - * @method static \Illuminate\Database\Query\Builder|PhysicalSecurityDevice withoutTrashed() - * - * @mixin \Eloquent */ class PhysicalSecurityDevice extends Model { diff --git a/app/PhysicalSwitch.php b/app/PhysicalSwitch.php index 77cc10c1..75b245e7 100644 --- a/app/PhysicalSwitch.php +++ b/app/PhysicalSwitch.php @@ -10,39 +10,6 @@ /** * App\PhysicalSwitch * - * @property int $id - * @property string $name - * @property string|null $description - * @property string|null $type - * @property \Illuminate\Support\Carbon|null $created_at - * @property \Illuminate\Support\Carbon|null $updated_at - * @property \Illuminate\Support\Carbon|null $deleted_at - * @property int|null $site_id - * @property int|null $building_id - * @property int|null $bay_id - * - * @property-read \App\Bay|null $bay - * @property-read \App\Building|null $building - * @property-read \App\Site|null $site - * - * @method static \Illuminate\Database\Eloquent\Builder|PhysicalSwitch newModelQuery() - * @method static \Illuminate\Database\Eloquent\Builder|PhysicalSwitch newQuery() - * @method static \Illuminate\Database\Query\Builder|PhysicalSwitch onlyTrashed() - * @method static \Illuminate\Database\Eloquent\Builder|PhysicalSwitch query() - * @method static \Illuminate\Database\Eloquent\Builder|PhysicalSwitch whereBayId($value) - * @method static \Illuminate\Database\Eloquent\Builder|PhysicalSwitch whereBuildingId($value) - * @method static \Illuminate\Database\Eloquent\Builder|PhysicalSwitch whereCreatedAt($value) - * @method static \Illuminate\Database\Eloquent\Builder|PhysicalSwitch whereDeletedAt($value) - * @method static \Illuminate\Database\Eloquent\Builder|PhysicalSwitch whereDescription($value) - * @method static \Illuminate\Database\Eloquent\Builder|PhysicalSwitch whereId($value) - * @method static \Illuminate\Database\Eloquent\Builder|PhysicalSwitch whereName($value) - * @method static \Illuminate\Database\Eloquent\Builder|PhysicalSwitch whereSiteId($value) - * @method static \Illuminate\Database\Eloquent\Builder|PhysicalSwitch whereType($value) - * @method static \Illuminate\Database\Eloquent\Builder|PhysicalSwitch whereUpdatedAt($value) - * @method static \Illuminate\Database\Query\Builder|PhysicalSwitch withTrashed() - * @method static \Illuminate\Database\Query\Builder|PhysicalSwitch withoutTrashed() - * - * @mixin \Eloquent */ class PhysicalSwitch extends Model { diff --git a/app/Process.php b/app/Process.php index 5c897468..99e253e8 100644 --- a/app/Process.php +++ b/app/Process.php @@ -10,53 +10,6 @@ /** * App\Process * - * @property int $id - * @property string $identifiant - * @property string|null $description - * @property string|null $owner - * @property int|null $security_need_c - * @property string|null $in_out - * @property int|null $dummy - * @property \Illuminate\Support\Carbon|null $created_at - * @property \Illuminate\Support\Carbon|null $updated_at - * @property \Illuminate\Support\Carbon|null $deleted_at - * @property int|null $macroprocess_id - * @property int|null $security_need_i - * @property int|null $security_need_a - * @property int|null $security_need_t - * - * @property-read \Illuminate\Database\Eloquent\Collection|array<\App\Activity> $activities - * @property-read int|null $activities_count - * @property-read \Illuminate\Database\Eloquent\Collection|array<\App\Entity> $entities - * @property-read int|null $entities_count - * @property-read \App\MacroProcessus|null $macroProcess - * @property-read \Illuminate\Database\Eloquent\Collection|array<\App\Information> $processInformation - * @property-read int|null $process_information_count - * @property-read \Illuminate\Database\Eloquent\Collection|array<\App\MApplication> $applications - * @property-read int|null $processes_m_applications_count - * - * @method static \Illuminate\Database\Eloquent\Builder|Process newModelQuery() - * @method static \Illuminate\Database\Eloquent\Builder|Process newQuery() - * @method static \Illuminate\Database\Query\Builder|Process onlyTrashed() - * @method static \Illuminate\Database\Eloquent\Builder|Process query() - * @method static \Illuminate\Database\Eloquent\Builder|Process whereCreatedAt($value) - * @method static \Illuminate\Database\Eloquent\Builder|Process whereDeletedAt($value) - * @method static \Illuminate\Database\Eloquent\Builder|Process whereDescription($value) - * @method static \Illuminate\Database\Eloquent\Builder|Process whereDummy($value) - * @method static \Illuminate\Database\Eloquent\Builder|Process whereId($value) - * @method static \Illuminate\Database\Eloquent\Builder|Process whereIdentifiant($value) - * @method static \Illuminate\Database\Eloquent\Builder|Process whereInOut($value) - * @method static \Illuminate\Database\Eloquent\Builder|Process whereMacroprocessId($value) - * @method static \Illuminate\Database\Eloquent\Builder|Process whereOwner($value) - * @method static \Illuminate\Database\Eloquent\Builder|Process whereSecurityNeedA($value) - * @method static \Illuminate\Database\Eloquent\Builder|Process whereSecurityNeedC($value) - * @method static \Illuminate\Database\Eloquent\Builder|Process whereSecurityNeedI($value) - * @method static \Illuminate\Database\Eloquent\Builder|Process whereSecurityNeedT($value) - * @method static \Illuminate\Database\Eloquent\Builder|Process whereUpdatedAt($value) - * @method static \Illuminate\Database\Query\Builder|Process withTrashed() - * @method static \Illuminate\Database\Query\Builder|Process withoutTrashed() - * - * @mixin \Eloquent */ class Process extends Model { diff --git a/app/Relation.php b/app/Relation.php index f3797fcc..66514a40 100644 --- a/app/Relation.php +++ b/app/Relation.php @@ -10,39 +10,6 @@ /** * App\Relation * - * @property int $id - * @property int|null $importance - * @property string $name - * @property string|null $type - * @property string|null $description - * @property string|false $is_hierarchical - * @property \Illuminate\Support\Carbon|null $created_at - * @property \Illuminate\Support\Carbon|null $updated_at - * @property \Illuminate\Support\Carbon|null $deleted_at - * @property int $source_id - * @property int $destination_id - * - * @property-read \App\Entity $destination - * @property-read \App\Entity $source - * - * @method static \Illuminate\Database\Eloquent\Builder|Relation newModelQuery() - * @method static \Illuminate\Database\Eloquent\Builder|Relation newQuery() - * @method static \Illuminate\Database\Query\Builder|Relation onlyTrashed() - * @method static \Illuminate\Database\Eloquent\Builder|Relation query() - * @method static \Illuminate\Database\Eloquent\Builder|Relation whereCreatedAt($value) - * @method static \Illuminate\Database\Eloquent\Builder|Relation whereDeletedAt($value) - * @method static \Illuminate\Database\Eloquent\Builder|Relation whereDescription($value) - * @method static \Illuminate\Database\Eloquent\Builder|Relation whereDestinationId($value) - * @method static \Illuminate\Database\Eloquent\Builder|Relation whereId($value) - * @method static \Illuminate\Database\Eloquent\Builder|Relation whereInportance($value) - * @method static \Illuminate\Database\Eloquent\Builder|Relation whereName($value) - * @method static \Illuminate\Database\Eloquent\Builder|Relation whereSourceId($value) - * @method static \Illuminate\Database\Eloquent\Builder|Relation whereType($value) - * @method static \Illuminate\Database\Eloquent\Builder|Relation whereUpdatedAt($value) - * @method static \Illuminate\Database\Query\Builder|Relation withTrashed() - * @method static \Illuminate\Database\Query\Builder|Relation withoutTrashed() - * - * @mixin \Eloquent */ class Relation extends Model { diff --git a/resources/views/admin/applications/index.blade.php b/resources/views/admin/applications/index.blade.php index de01e77e..b77937ff 100644 --- a/resources/views/admin/applications/index.blade.php +++ b/resources/views/admin/applications/index.blade.php @@ -63,7 +63,7 @@ ($application->application_block==null) ) ) - /* + /* || ((auth()->user()->granularity==3)&& ( @@ -135,10 +135,8 @@ class="table-warning" - - - @endsection + @section('scripts') @parent @yield('scripts') diff --git a/resources/views/partials/menu.blade.php b/resources/views/partials/menu.blade.php index 335d1db2..9c75038b 100644 --- a/resources/views/partials/menu.blade.php +++ b/resources/views/partials/menu.blade.php @@ -3,9 +3,19 @@