Created
May 23, 2018 22:03
-
-
Save Tech-Emiretus/da7cd40a010a71cbcd84ba5ecabc2816 to your computer and use it in GitHub Desktop.
Get only the product_name in a new array
This file contains hidden or 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
<?php | |
$data = Product::where('type', 'Ring')->get(); | |
return $data->pluck('product_name'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment