Pluck or Something else?

Related searches

DB::table('mobil')->where('id',$id)->first().

I ever try it, but it give me all columns data. The problem is, In this Mobil table I have name, status, des, model and Id. The data that I need is name, status, and des. Can you help me to make a code to take some data that I need and it must one row. It must first row

you can use select method

DB::table('mobil')
    ->where('id', $id)
    ->select(['name', 'status', 'des'])
    ->first();

PLUCK (verb) definition and synonyms, Definition of PLUCK (verb): pull feathers off body of dead bird; pull strings of musical pluck Definitions and Synonyms Other entries for this word. + 1. To grasp something with one's fingers or a grasping instrument and pull or tug it forcibly and abruptly off, out of, or away from something else. A noun or pronoun is used between "pluck" and "from." He reached over and plucked the badge from her jacket. I sat plucking cactus spines from my foot with tweezers.

Using DB query

DB::table('mobil')
    ->select('name', 'status', 'des')
    ->where('id', $id)  
    ->first(); 

Using model

if your model is Mobil.php

Mobil::select('name', 'status', 'des')
    ->where('id', $id)  
    ->first(); 

pluck, Pluck definition, to pull off or out from the place of growth, as fruit, flowers, feathers, etc.: to pluck feathers from a chicken. See more. Definition of pluck something from in the Idioms Dictionary. pluck something from phrase. What does pluck something from expression mean? Definitions by the largest Idiom Dictionary.

You can pass columns name as array in ->first() method

DB::table('mobil')
    ->where('id', $id)
    ->first(['name', 'status', 'des'])

Pluck, Definition of pluck written for English Language Learners from the Merriam- Webster to pull part of (something) with your fingers especially more than once. 1. To grasp something with one's fingers or a grasping instrument and pull or tug it forcibly and abruptly off, out of, or away from something else. A noun or pronoun is used between "pluck" and "from." He reached over and plucked the badge from her jacket.

Pluck, To grasp something with one's fingers or a grasping instrument and pull or tug it forcibly and abruptly off, out of, or away from something else. A noun or pronoun � Pluck definition, to pull off or out from the place of growth, as fruit, flowers, feathers, etc.: to pluck feathers from a chicken. See more.

Pluck from, 1. To grasp and remove something very quickly and abruptly (out of something else). A noun or pronoun is used between "pluck" and "out." The thief plucked the wallet out of her purse as he walked by her. She reached into the bag and plucked out a present for her nephew.

2. To grasp something with one's fingers or a grasping instrument and pull or tug it forcibly and abruptly off of something else. A noun or pronoun is used between "pluck" and "from." He reached over and plucked the badge off her jacket. She plucked leaves off the trees to use in her diorama.