ãLaravelãorderByã§nullãæå¾ã«æã£ã¦ãã
Laravel使ã£ã¦ã¦ãorderByããããnullãæã£ã¦ããã¼ã¿ãæåã«æ¥ã¦é¬±é¶ããã£ãã®ã§æ¹æ³ãªããã¨æ¢ããã¨ï¼æéã
$sql = $sql->orderByRaw(DB::raw($column.' '.$sort.' NULLS LAST'));
ã¡ãªã¿ã«DBã¯PostgreSQLãªã®ã§ä»ã®SQLã§ã¯ä»ã®æ¹æ³ãæãã¨æããã¾ããã
orderByRaw(DB::raw('hogehoge'))ã使ããã¨ã«ãªãã¨æãã¾ãã