예제 #1
0
파일: Cover.php 프로젝트: nutsdo/mz-service
 public function getPhotoAttribute($value)
 {
     //dd(Route::currentRouteName());
     $currentRouteName = Route::currentRouteName();
     $pattern = '/admin./';
     $result = preg_match($pattern, $currentRouteName);
     if (!$result) {
         return url($value);
     } else {
         return $value;
     }
 }