create show,store,update and delete for RoadMaintenanceStationController

This commit is contained in:
2025-04-09 16:21:58 +03:30
parent 9e1b25d9a1
commit 21f2dd7c2f
5 changed files with 312 additions and 66 deletions

View File

@@ -0,0 +1,21 @@
<?php
namespace App\Enums;
enum RoadMaintenanceStationTypes: int
{
case DAEMI= 1;
case MOVAGHAT = 2;
case FASLI = 3;
public static function name(int $state): string
{
$mapArray = [
1 => "دائمی",
2 => "موقت",
3 => "فصلی",
];
return $mapArray[$state];
}
}