davy_yg
1 month ago

fill

Posted 1 month ago by davy_yg

Is this laravel code: $productCatalog->fill($attributes); ?

$attributes = $request->except([
        'name', 'warehouse', 'description', 'nutrition_fact', 'word_of_coution', 'certification', 'packaging',
        'product_name_bpom', 'ingredient', 'key_ingredient', 'key_nutrition_general', 'benefit_general',
        'function_of_food', 'media', 'certificate', 'product_category_id', 'master_data_nutrition_id',
        'count_price', 'kematangan_value', 'flag_product', 'tagline', 'url_previous', 'response_', 'products',
        'nutrition', 'rating'
    ]);

    $productCatalog->fill($attributes);

I searched the documentation for fill and can only found filled.

ref: https://laravel.com/docs/6.x/helpers#method-filled

Please sign in or create an account to participate in this conversation.