Beispiel #1
0
 public static function getnamebyroutename($routename)
 {
     $pattert = "/\\.[a-z]*\$/";
     $routename = preg_replace($pattert, '', $routename);
     $tenchucnang = Danhmucchucnang::where('chucnang_id', $routename)->value('tenchucnang');
     return $tenchucnang;
 }