Created
January 22, 2019 10:34
-
-
Save pringgojs/e14da336492f83cdfb08cb9ea65c826e to your computer and use it in GitHub Desktop.
merubah collection to array
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static function listPengawasArray() | |
{ | |
$array_pengawas = self::where('user_id', auth()->user()->id)->get(['pengawas_id'])->mode('pengawas_id'); | |
} | |
// response | |
array:2 [▼ | |
0 => 1 | |
1 => 2 | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment