<?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>DEV Community: Lloric Mayuga Garcia</title>
    <description>The latest articles on DEV Community by Lloric Mayuga Garcia (@lloricode).</description>
    <link>https://dev.to/lloricode</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%2F141037%2Fc7e3675d-f977-4d60-b930-1c5c39ea3e0a.jpeg</url>
      <title>DEV Community: Lloric Mayuga Garcia</title>
      <link>https://dev.to/lloricode</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/lloricode"/>
    <language>en</language>
    <item>
      <title>Handling Large Payload for Testing API</title>
      <dc:creator>Lloric Mayuga Garcia</dc:creator>
      <pubDate>Fri, 22 Oct 2021 16:38:44 +0000</pubDate>
      <link>https://dev.to/lloricode/handling-large-payload-for-testing-api-1509</link>
      <guid>https://dev.to/lloricode/handling-large-payload-for-testing-api-1509</guid>
      <description>&lt;p&gt;&lt;a href="https://lloricode.com/blog/handling-large-payload-for-testing-api" rel="noopener noreferrer"&gt;https://lloricode.com/blog/handling-large-payload-for-testing-api&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Paymaya SDK for Laravel and Lumen</title>
      <dc:creator>Lloric Mayuga Garcia</dc:creator>
      <pubDate>Fri, 12 Mar 2021 03:18:48 +0000</pubDate>
      <link>https://dev.to/lloricode/paymaya-sdk-for-laravel-and-lumen-10ja</link>
      <guid>https://dev.to/lloricode/paymaya-sdk-for-laravel-and-lumen-10ja</guid>
      <description>&lt;p&gt;This is uses &lt;code&gt;guzzlehttp/guzzle&lt;/code&gt; so able to handle and focus on working generate request payload for sending in Paymaya API, it also include mocking in-case you want to create test for your checkout or any endpoint provided by the SDK.&lt;/p&gt;

&lt;p&gt;try this out &lt;a href="https://github.com/lloricode/laravel-paymaya-sdk" rel="noopener noreferrer"&gt;https://github.com/lloricode/laravel-paymaya-sdk&lt;/a&gt;, and im open for all the opportunities. &lt;/p&gt;

</description>
    </item>
    <item>
      <title>Great package that handle your json type table column in laravel 8+</title>
      <dc:creator>Lloric Mayuga Garcia</dc:creator>
      <pubDate>Thu, 29 Oct 2020 00:58:06 +0000</pubDate>
      <link>https://dev.to/lloricode/great-package-that-handle-your-json-type-table-column-in-laravel-8-c22</link>
      <guid>https://dev.to/lloricode/great-package-that-handle-your-json-type-table-column-in-laravel-8-c22</guid>
      <description>&lt;p&gt;&lt;a href="https://github.com/jessarcher/laravel-castable-data-transfer-object" rel="noopener noreferrer"&gt;https://github.com/jessarcher/laravel-castable-data-transfer-object&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Tip to get collection data in run time using spatie/media-library in Laravel</title>
      <dc:creator>Lloric Mayuga Garcia</dc:creator>
      <pubDate>Wed, 05 Feb 2020 03:05:05 +0000</pubDate>
      <link>https://dev.to/lloricode/tip-to-get-collection-data-in-run-time-using-spatie-media-library-in-laravel-12b4</link>
      <guid>https://dev.to/lloricode/tip-to-get-collection-data-in-run-time-using-spatie-media-library-in-laravel-12b4</guid>
      <description>&lt;p&gt;Sample i want to check if its &lt;code&gt;singleFile&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;In Model&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight php"&gt;&lt;code&gt;
    &lt;span class="k"&gt;public&lt;/span&gt; &lt;span class="k"&gt;function&lt;/span&gt; &lt;span class="n"&gt;registerMediaCollections&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
    &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="nv"&gt;$this&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;addMediaCollection&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'homepage'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
            &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;registerMediaConversions&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
                &lt;span class="k"&gt;function&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kt"&gt;Media&lt;/span&gt; &lt;span class="nv"&gt;$media&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
                  &lt;span class="c1"&gt;// ...&lt;/span&gt;
                &lt;span class="p"&gt;}&lt;/span&gt;
            &lt;span class="p"&gt;);&lt;/span&gt;

        &lt;span class="nv"&gt;$this&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;addMediaCollection&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'page-large'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
            &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;singleFile&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="c1"&gt;// &amp;lt; ----- this need to check&lt;/span&gt;
            &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;registerMediaConversions&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
                &lt;span class="k"&gt;function&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kt"&gt;Media&lt;/span&gt; &lt;span class="nv"&gt;$media&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
                  &lt;span class="c1"&gt;// ...&lt;/span&gt;
                &lt;span class="p"&gt;}&lt;/span&gt;
            &lt;span class="p"&gt;);&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In blade:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight php"&gt;&lt;code&gt;&lt;span class="cp"&gt;&amp;lt;?php&lt;/span&gt; &lt;span class="cd"&gt;/** @var \App\Models\CMS\Slider\Slider $model */&lt;/span&gt; &lt;span class="cp"&gt;?&amp;gt;&lt;/span&gt;

@php $model-&amp;gt;registerMediaCollections() @endphp

@if(
    collect($model-&amp;gt;mediaCollections)
    -&amp;gt;where('name', $model-&amp;gt;collection_name)
    -&amp;gt;first()-&amp;gt;singleFile
)
    &lt;span class="nt"&gt;&amp;lt;input-field&lt;/span&gt; &lt;span class="na"&gt;name=&lt;/span&gt;&lt;span class="s"&gt;"image"&lt;/span&gt; &lt;span class="na"&gt;type=&lt;/span&gt;&lt;span class="s"&gt;"image"&lt;/span&gt; &lt;span class="na"&gt;checked&lt;/span&gt;&lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
@else
    &lt;span class="nt"&gt;&amp;lt;input-field&lt;/span&gt; &lt;span class="na"&gt;name=&lt;/span&gt;&lt;span class="s"&gt;"images"&lt;/span&gt; &lt;span class="na"&gt;type=&lt;/span&gt;&lt;span class="s"&gt;"images"&lt;/span&gt; &lt;span class="na"&gt;checked&lt;/span&gt;&lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
@endif

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
    </item>
    <item>
      <title>Lumen Boilerplate</title>
      <dc:creator>Lloric Mayuga Garcia</dc:creator>
      <pubDate>Mon, 11 Nov 2019 22:00:38 +0000</pubDate>
      <link>https://dev.to/lloricode/lumen-dingo-boilerplate-4hhl</link>
      <guid>https://dev.to/lloricode/lumen-dingo-boilerplate-4hhl</guid>
      <description>&lt;p&gt;Hi!&lt;/p&gt;

&lt;p&gt;try this API with Lumen&lt;br&gt;
&lt;a href="https://github.com/lloricode/lumen-boilerplate" rel="noopener noreferrer"&gt;https://github.com/lloricode/lumen-boilerplate&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Thanks!</title>
      <dc:creator>Lloric Mayuga Garcia</dc:creator>
      <pubDate>Mon, 11 Nov 2019 21:58:36 +0000</pubDate>
      <link>https://dev.to/lloricode/thanks-5c84</link>
      <guid>https://dev.to/lloricode/thanks-5c84</guid>
      <description>&lt;p&gt;Thanks to hacktoberfest even all my PR is just a minor &amp;lt;3&lt;/p&gt;

&lt;h1&gt;
  
  
  hacktoberfest
&lt;/h1&gt;

&lt;h1&gt;
  
  
  github
&lt;/h1&gt;

</description>
    </item>
    <item>
      <title>What the F</title>
      <dc:creator>Lloric Mayuga Garcia</dc:creator>
      <pubDate>Mon, 14 Oct 2019 02:38:07 +0000</pubDate>
      <link>https://dev.to/lloricode/what-the-f-2n1i</link>
      <guid>https://dev.to/lloricode/what-the-f-2n1i</guid>
      <description>&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight php"&gt;&lt;code&gt;  &lt;span class="s1"&gt;'version_urls'&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fs1518hhxnvr9xh3ggcoo.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fs1518hhxnvr9xh3ggcoo.jpg" alt="Alt Text" width="600" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Adding functionality to add entire folder to a route in Laravel</title>
      <dc:creator>Lloric Mayuga Garcia</dc:creator>
      <pubDate>Wed, 09 Oct 2019 23:55:42 +0000</pubDate>
      <link>https://dev.to/lloricode/adding-functionality-to-add-entire-folder-to-a-route-in-laravel-ik5</link>
      <guid>https://dev.to/lloricode/adding-functionality-to-add-entire-folder-to-a-route-in-laravel-ik5</guid>
      <description>&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight php"&gt;&lt;code&gt;    &lt;span class="c1"&gt;// App\Providers\RouteServiceProvider&lt;/span&gt;

    &lt;span class="k"&gt;public&lt;/span&gt; &lt;span class="k"&gt;function&lt;/span&gt; &lt;span class="n"&gt;map&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
    &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="nc"&gt;Route&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="nf"&gt;macro&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'requireFolder'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="k"&gt;function&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kt"&gt;string&lt;/span&gt; &lt;span class="nv"&gt;$folder&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
            &lt;span class="k"&gt;try&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;

                &lt;span class="nv"&gt;$it&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;RecursiveIteratorIterator&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
                    &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;RecursiveDirectoryIterator&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$folder&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
                &lt;span class="p"&gt;);&lt;/span&gt;

                &lt;span class="k"&gt;while&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$it&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;valid&lt;/span&gt;&lt;span class="p"&gt;())&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
                    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
                        &lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="nv"&gt;$it&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;isDot&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt;
                        &lt;span class="nv"&gt;$it&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;isFile&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt;
                        &lt;span class="nv"&gt;$it&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;isReadable&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt;
                        &lt;span class="nv"&gt;$it&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nb"&gt;current&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;getExtension&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="s1"&gt;'php'&lt;/span&gt;
                    &lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
                        &lt;span class="k"&gt;require&lt;/span&gt; &lt;span class="nv"&gt;$it&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nb"&gt;key&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
                    &lt;span class="p"&gt;}&lt;/span&gt;

                    &lt;span class="nv"&gt;$it&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nb"&gt;next&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
                &lt;span class="p"&gt;}&lt;/span&gt;
            &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;catch&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nc"&gt;Exception&lt;/span&gt; &lt;span class="nv"&gt;$e&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
                &lt;span class="nf"&gt;dd&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;__METHOD__&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nv"&gt;$e&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;getMessage&lt;/span&gt;&lt;span class="p"&gt;());&lt;/span&gt;
            &lt;span class="p"&gt;}&lt;/span&gt;
        &lt;span class="p"&gt;});&lt;/span&gt;

        &lt;span class="nv"&gt;$this&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;mapWebApiRoutes&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
        &lt;span class="nv"&gt;$this&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;mapWebRoutes&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;now you can just use this&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight php"&gt;&lt;code&gt;&lt;span class="nc"&gt;Route&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="nf"&gt;group&lt;/span&gt;&lt;span class="p"&gt;([&lt;/span&gt;
    &lt;span class="s1"&gt;'prefix'&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="s1"&gt;'admin'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;],&lt;/span&gt; &lt;span class="k"&gt;function&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nc"&gt;Route&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="nf"&gt;requireFolder&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;__DIR__&lt;/span&gt;&lt;span class="mf"&gt;.&lt;/span&gt;&lt;span class="s1"&gt;'/backend'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="p"&gt;});&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;all php files will automagically &lt;code&gt;require&lt;/code&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Just a note</title>
      <dc:creator>Lloric Mayuga Garcia</dc:creator>
      <pubDate>Wed, 09 Oct 2019 00:09:20 +0000</pubDate>
      <link>https://dev.to/lloricode/just-a-note-3ob0</link>
      <guid>https://dev.to/lloricode/just-a-note-3ob0</guid>
      <description>&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight php"&gt;&lt;code&gt;            &lt;span class="c1"&gt;// sometime column is not carbonated, i mean instance is not Carbon/Carbon&lt;/span&gt;
            &lt;span class="nv"&gt;$at&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;Date&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="nf"&gt;parse&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$entity&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nv"&gt;$column&lt;/span&gt;&lt;span class="p"&gt;});&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
    </item>
  </channel>
</rss>
