<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: Watheq Alshowaiter</title>
    <description>The latest articles on Forem by Watheq Alshowaiter (@watheqalshowaiter).</description>
    <link>https://forem.com/watheqalshowaiter</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F136561%2F6ad1e087-56a4-4ade-8adc-a28ac46f57c8.jpeg</url>
      <title>Forem: Watheq Alshowaiter</title>
      <link>https://forem.com/watheqalshowaiter</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/watheqalshowaiter"/>
    <language>en</language>
    <item>
      <title>"Backup Tables" package</title>
      <dc:creator>Watheq Alshowaiter</dc:creator>
      <pubDate>Sat, 24 Aug 2024 20:32:30 +0000</pubDate>
      <link>https://forem.com/watheqalshowaiter/model-required-fields-package-31gl</link>
      <guid>https://forem.com/watheqalshowaiter/model-required-fields-package-31gl</guid>
      <description>&lt;p&gt;Backup single or multiple database tables with ease.&lt;/p&gt;

&lt;p&gt;By adding &lt;code&gt;BackupTables::generateBackup('users')&lt;/code&gt; and that is it.&lt;/p&gt;

&lt;p&gt;You can also backup multiple tables &lt;code&gt;BackupTables::generateBackup(['users', 'posts'])&lt;/code&gt; or simple pass models instead of tables if you want `BackupTables::generateBackup([User::class, Post::class]).&lt;/p&gt;

&lt;p&gt;This is different from the Spatie backup package because this package is focused on tables for certain cases, not the regular backups for all applications like what the Spatie package did.&lt;/p&gt;

&lt;p&gt;package link with examples and features in detail: &lt;a href="https://github.com/WatheqAlshowaiter/backup-tables" rel="noopener noreferrer"&gt;https://github.com/WatheqAlshowaiter/backup-tables&lt;/a&gt;&lt;/p&gt;

</description>
      <category>laravel</category>
      <category>php</category>
      <category>package</category>
    </item>
    <item>
      <title>"Model Required Fields" package</title>
      <dc:creator>Watheq Alshowaiter</dc:creator>
      <pubDate>Sat, 27 Jul 2024 11:54:35 +0000</pubDate>
      <link>https://forem.com/watheqalshowaiter/model-required-fields-package-33p1</link>
      <guid>https://forem.com/watheqalshowaiter/model-required-fields-package-33p1</guid>
      <description>&lt;p&gt;With Model Required Fields package, you can get the required model fields, excluding primary keys, nullable fields, and fields with defaults.&lt;/p&gt;

&lt;p&gt;I first needed this information while working on a large project with no tests or factories and many migrations. It was distracting to manually look for each required field.&lt;/p&gt;

&lt;p&gt;I created a simple trait to fetch required fields. It was easy in Laravel 11 and 10. Then I realized that most programmers who face this problem are usually using older versions, so I added support for Laravel 9, 8, 7, and 6, and extracted the logic into a package.&lt;/p&gt;

&lt;p&gt;I tested the code for each supported Laravel version and each SQL database: SQLite, MySQL, MariaDB, PostgreSQL, and Microsoft SQL Server. I needed to add support for each SQL database because I used the DB facade with raw SQL queries, and there were slight differences each time.&lt;/p&gt;

&lt;p&gt;The package is fully tested with PHPUnit and GitHub Actions for every Laravel version and for each database.&lt;/p&gt;

&lt;p&gt;The usage and examples are in the readme file.&lt;/p&gt;

&lt;p&gt;I hope you like this package, and I welcome any contributions or comments.&lt;/p&gt;

&lt;p&gt;package link:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/watheqAlshowaiter/model-required-fields" rel="noopener noreferrer"&gt;https://github.com/watheqAlshowaiter/model-required-fields&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>laravel</category>
      <category>php</category>
      <category>package</category>
    </item>
    <item>
      <title>Laravel Taxify</title>
      <dc:creator>Watheq Alshowaiter</dc:creator>
      <pubDate>Fri, 22 Mar 2024 23:02:33 +0000</pubDate>
      <link>https://forem.com/watheqalshowaiter/laravel-taxify-4m0f</link>
      <guid>https://forem.com/watheqalshowaiter/laravel-taxify-4m0f</guid>
      <description>&lt;p&gt;Laravel Taxify provides a set of helper functions and classes to simplify tax (VAT) calculations within Laravel applications. that allow developers to easily integrate tax calculation functionalities into their projects with multi tax profiles settings and (fixed, percentage) ways. it's offers a straightforward and efficient solution Designed to streamline the process of handling taxes.&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;a href="https://omaralalwi.github.io/laravel-taxify"&gt;Documentation&lt;/a&gt;
&lt;/h2&gt;

&lt;h2&gt;
  
  
  Features
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Calculate tax for individual amounts or a collection of amounts&lt;/li&gt;
&lt;li&gt;Retrieve tax amount, rate, and type for any profile as individual.&lt;/li&gt;
&lt;li&gt;Retrieve tax &lt;code&gt;amount_with_tax&lt;/code&gt; and &lt;code&gt;tax_amount&lt;/code&gt;  and &lt;code&gt;tax_rate&lt;/code&gt; for any profile as individual for one amount or a collection of amounts&lt;/li&gt;
&lt;li&gt;Get tax rate as a percentage (for percentage type only)&lt;/li&gt;
&lt;li&gt;Customizable configuration options through environment variables easy.&lt;/li&gt;
&lt;li&gt;helper functions easy-to-use.&lt;/li&gt;
&lt;li&gt;support all php and laravel versions.&lt;/li&gt;
&lt;li&gt;Exception Handling: Robust error handling to ensure smooth operation and easy debugging.&lt;/li&gt;
&lt;li&gt;Logging: Automatic logging of errors and exceptions for better error tracking and debugging.&lt;/li&gt;
&lt;li&gt;Unit Tests.&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>laravel</category>
      <category>php</category>
      <category>tax</category>
    </item>
  </channel>
</rss>
