eloquent orm cmd code example
Example 1: fresh laravel
$flight = Flight::where('number', 'FR 900')->first();
$flight->number = 'FR 456';
$flight->refresh();
$flight->number; // "FR 900"
Example 2: create or update laravel
DB::table('vendor_managements')->where('vendor_code', $vendor_code)->update(array('state'=> $state_namne));