kalam ahmedkalam714.hashnode.dev·Apr 2, 2024Enhancing Database Query Performance with Advanced Laravel Eloquent TechniquesAs a chef, you know that ingredient quality significantly affects the flavor of your dishes. Similarly, in web development, optimizing your database queries is like using top-notch ingredients to boost your recipe’s performance. Imagine you’re cookin...Discuss·10 likesAdvanced Techniques
ssbhattaraishyam-sundar.com.np·Mar 28, 2024WhereAll() and WhereAny() in laravel 11In Laravel 11, the Query Builder introduces two powerful functions: whereAll() and whereAny(), anticipated to see widespread adoption. Sometimes, you might need to impose identical conditions on multiple columns in a database query. For instance, you...DiscussLaravel Updateslaravel query
amr gaberProcodeodoo.com·Mar 2, 2024Model.with_env() in OdooModel.with_env() The with_env() method temporarily changes the environment of the current model to the new environment. This can be useful for testing code in different contexts or accessing data that is not normally accessible in the current environ...DiscussOdoo
amr gaberProcodeodoo.com·Mar 1, 2024ORM Methods: Read()This method allows you to read data from the database. It takes a list of fields as input and returns a list of dictionaries mapping field names to their values. Parameters: fields: This parameter specifies which fields you want to read from the data...DiscussOdoo
amr gaberProcodeodoo.com·Mar 1, 2024𝐎𝐑𝐌 𝐌𝐞𝐭𝐡𝐨𝐝𝐬 : 𝐒𝐞𝐚𝐫𝐜𝐡()The search() Method allows you to find records that match specific criteria. It enables you to search for records in a model based on a particular domain. Parameters: domain: a list of tuples that define the criteria that the records must match. Use...DiscussOdoo
amr gaberProcodeodoo.com·Feb 28, 2024𝐎𝐑𝐌 𝐌𝐞𝐭𝐡𝐨𝐝𝐬 : search_read()It combines the functionality of the search and read functions, allowing you to perform a search and then read the selected records in one step. Parameters domain: A search domain. fields: A list of fields to read from the resulting records. offse...Discuss·31 readsORM Methods