<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Ariel Mejia Dev - Medium]]></title>
        <description><![CDATA[Personal Blog - Medium]]></description>
        <link>https://medium.com/ariel-mejia-dev?source=rss----ea6efc26ce19---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Ariel Mejia Dev - Medium</title>
            <link>https://medium.com/ariel-mejia-dev?source=rss----ea6efc26ce19---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 08:26:05 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/ariel-mejia-dev" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Laragon setup series Part 6 “add nodeJS and Yarn”.]]></title>
            <link>https://medium.com/ariel-mejia-dev/laragon-setup-series-part-6-add-nodejs-and-yarn-c364e4dae94a?source=rss----ea6efc26ce19---4</link>
            <guid isPermaLink="false">https://medium.com/p/c364e4dae94a</guid>
            <category><![CDATA[yarn]]></category>
            <category><![CDATA[laragon]]></category>
            <category><![CDATA[nodejs]]></category>
            <dc:creator><![CDATA[Ariel Mejia Dev]]></dc:creator>
            <pubDate>Fri, 17 Jan 2020 14:01:02 GMT</pubDate>
            <atom:updated>2020-01-17T14:01:01.702Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pqnlBUrCB4mBuyffIOdT-g.jpeg" /></figure><p>In Laravel development the UI frontend scaffold use NodeJS and Yarn as technologies to handle Laravel Mix (webpack easy to use abstraction), to add this technologies to your setup, is not necessary to download again, Laragon provides an easy way to install it on your system at one click:</p><h4>Select and install Node and Yarn</h4><ul><li>Go to Menu/Tools/Quick add/node</li><li>Go to Menu/Tools/Quick add/yarn</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/725/1*k26lfnUV7ez9yChHjQaQ-g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/717/1*WFHRDjU9A6yW0ro_FMv4zQ.png" /></figure><p>To test the installation you can use cmd/terminal (Laragon has a terminal button to use Cmder) and type</p><pre>node -v<br>npm -v<br>yarn -v</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/943/1*Itp9s-JfUpVNhOATveaj2g.png" /></figure><p>This is the last part of this series thanks for reading and if you find this helpful please clap and share.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c364e4dae94a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/ariel-mejia-dev/laragon-setup-series-part-6-add-nodejs-and-yarn-c364e4dae94a">Laragon setup series Part 6 “add nodeJS and Yarn”.</a> was originally published in <a href="https://medium.com/ariel-mejia-dev">Ariel Mejia Dev</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Laragon setup series Part 5 “add sqlite and postgres to Laragon”.]]></title>
            <link>https://medium.com/ariel-mejia-dev/laragon-setup-series-part-5-add-sqlite-and-postgres-to-laragon-8d8a210b4a98?source=rss----ea6efc26ce19---4</link>
            <guid isPermaLink="false">https://medium.com/p/8d8a210b4a98</guid>
            <category><![CDATA[sqlite]]></category>
            <category><![CDATA[postgres]]></category>
            <category><![CDATA[posgresql]]></category>
            <category><![CDATA[laragon]]></category>
            <dc:creator><![CDATA[Ariel Mejia Dev]]></dc:creator>
            <pubDate>Wed, 15 Jan 2020 13:51:01 GMT</pubDate>
            <atom:updated>2020-01-15T13:51:01.241Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/623/1*X0KStHfY__eO1IN6jaW53Q.jpeg" /></figure><p>In Laravel development the database is a layer that can be handle with an abstract implementation like Eloquent so we do not care to much about the drivers or sql setences by itself, but for development purpose sometimes it is preferred to use a lightway database like sqlite (useful in case of tests in memory a very cool feature that is added by default in Laravel 6)</p><p>Or postgres because it would be the production database, in this cases you will need to add more drivers to the default Laragon mysql driver, this is really easy, and it will be divided in two steps for each one.</p><h3>Step One download the extension</h3><p>Go to menu/php/extensions/pdo_sqlite or menu/php/extensions/pdo_pgsql according to the case.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/893/1*tHYbxSaoxmLG5mNV-3_QKA.png" /></figure><h3>Step Two install a tool to manage sqlite or postgres dbs</h3><p>Go to menu/tools/quick add/postgresql-11 and click on this option:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/691/1*M1uhb9CqztizOZrogI7swQ.png" /></figure><p>Then it will download and extract the software:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/669/1*Jx67yaNci_3S3nDrWHqh1g.png" /></figure><p>When it finish the process, go to config (the cog icon) /Services &amp; Ports, now you will have available PostgreSQL checkbox, click the checkbox and close:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/718/1*NKQm4brZAZRsPo0lbA4AFw.png" /></figure><p>Now when Laragon loads it will start the postgreSQL engine too, go to Menu/PostgreSQL (this is a new option) /pgAdmin4 and click it:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1008/1*3Ic2aK7y0csgOFSkri8B-g.png" /></figure><p>It will load the software to manage postgreSQL databases easily, now to open:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/674/1*zlcP8ippVjGGwk3SZoEvdQ.png" /></figure><p>pgAdmin requires to set a server to manage development database:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_ZQLU1xl4SubZ2iKYQkd_w.png" /></figure><p>to add a server go to sidebar, select servers/create/server option, click this option:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dNqSyeAxZvTFwDADDR73Ew.png" /></figure><p>Add a name for the server and Add a connection Host as localhost and save</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZXtbD3SKlPEiqQ5F_MOsZw.png" /></figure><p>Now you have your development server configured, just need to add a database, to add a database click on your “development” server, it will expand options, click on Database option and then select create/database and now you will have the setup for postgreSQL complete.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*B3CY_fp-doFhsREnd89ZMg.png" /></figure><h4>For SQLite</h4><p>Sqlite is commonly used by development purpose only so, its better to use tinker to view/manage SQLite databases reference of tinker <a href="https://laravel.com/docs/6.x/artisan#tinker">here</a></p><p>Thanks for reading, the next and last part of this series will cover the setup tools for frontend technologies like node and yarn, if you find this post helpful please clap and share.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8d8a210b4a98" width="1" height="1" alt=""><hr><p><a href="https://medium.com/ariel-mejia-dev/laragon-setup-series-part-5-add-sqlite-and-postgres-to-laragon-8d8a210b4a98">Laragon setup series Part 5 “add sqlite and postgres to Laragon”.</a> was originally published in <a href="https://medium.com/ariel-mejia-dev">Ariel Mejia Dev</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Laragon setup series Part 4 “Add php extensions on Laragon” .]]></title>
            <link>https://medium.com/ariel-mejia-dev/laragon-setup-series-part-4-add-php-extensions-on-laragon-be0defb6b913?source=rss----ea6efc26ce19---4</link>
            <guid isPermaLink="false">https://medium.com/p/be0defb6b913</guid>
            <category><![CDATA[laragon]]></category>
            <category><![CDATA[php]]></category>
            <category><![CDATA[php-development]]></category>
            <dc:creator><![CDATA[Ariel Mejia Dev]]></dc:creator>
            <pubDate>Mon, 13 Jan 2020 12:51:01 GMT</pubDate>
            <atom:updated>2020-01-13T12:51:01.145Z</atom:updated>
            <content:encoded><![CDATA[<h3>Laragon setup series Part 4 “Add php extensions on Laragon” .</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/1*Tu-x8HGQsetiqNH9tn6Zeg.png" /></figure><p>Sometimes an not commond extension is needed, a good use case could be gd2 for special traitment to images and opcache, some packages require to use this extensions, so how to get php extensions easy and fast?</p><p>Laragon provide the easiest way to handle this situations, just open Laragon, click on Menu, select PHP/extensions and click on the required extension, it will be downloaded and extract for you, a breeze!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/740/1*xMMq7EQDijQd0gmWDZN1Bw.png" /></figure><p>Thanks for reading, the next part will be “add sqlite and postgres to Laragon”, if you like this post please clap or even better share the post.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=be0defb6b913" width="1" height="1" alt=""><hr><p><a href="https://medium.com/ariel-mejia-dev/laragon-setup-series-part-4-add-php-extensions-on-laragon-be0defb6b913">Laragon setup series Part 4 “Add php extensions on Laragon” .</a> was originally published in <a href="https://medium.com/ariel-mejia-dev">Ariel Mejia Dev</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Laragon setup series Part 2 “update PHP to 7.4 or any future version on laragon”.]]></title>
            <link>https://medium.com/ariel-mejia-dev/laragon-setup-series-part-2-update-php-to-7-4-or-any-future-version-on-laragon-7b8824b86460?source=rss----ea6efc26ce19---4</link>
            <guid isPermaLink="false">https://medium.com/p/7b8824b86460</guid>
            <category><![CDATA[laragon]]></category>
            <category><![CDATA[laravel]]></category>
            <category><![CDATA[php]]></category>
            <category><![CDATA[php-development]]></category>
            <dc:creator><![CDATA[Ariel Mejia Dev]]></dc:creator>
            <pubDate>Sat, 11 Jan 2020 18:24:28 GMT</pubDate>
            <atom:updated>2020-01-08T11:21:01.481Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/502/1*bToy00XstzDhiMM0SXrI5A.png" /></figure><p>We will divide the process into 3 steps.</p><h3>Download PHP 7.4</h3><p>If you are using laragon you need a php version for windows, to access to php for windows downloads you can go to the address: <a href="https://windows.php.net/download/">https://windows.php.net/download/</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aeS0npXq40D0iHLfRqGJaA.png" /></figure><p>There we are going to download a zip file.</p><h3>Add PHP 7.4 to laragon\bin\php path</h3><p>first copy the zip file to “C:\laragon\bin\php” then extract to folder name there, to look like the image.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fM6s4FzB3-vey87G2DYlYg.png" /></figure><h3>Change PHP version on Laragon</h3><p>Click on menu/PHP/version then switch to PHP 7.4 folder</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/812/1*yshL6MklkcsqztnvB-Vl2g.png" /></figure><p>Thanks for reading, the next part will be “add phpmyadmin to Laragon”.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7b8824b86460" width="1" height="1" alt=""><hr><p><a href="https://medium.com/ariel-mejia-dev/laragon-setup-series-part-2-update-php-to-7-4-or-any-future-version-on-laragon-7b8824b86460">Laragon setup series Part 2 “update PHP to 7.4 or any future version on laragon”.</a> was originally published in <a href="https://medium.com/ariel-mejia-dev">Ariel Mejia Dev</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Laragon setup series Part 3 “add phpmyadmin to Laragon”]]></title>
            <link>https://medium.com/ariel-mejia-dev/laragon-setup-series-part-3-add-phpmyadmin-to-laragon-faf414db463a?source=rss----ea6efc26ce19---4</link>
            <guid isPermaLink="false">https://medium.com/p/faf414db463a</guid>
            <category><![CDATA[php]]></category>
            <category><![CDATA[phpmyadmin]]></category>
            <category><![CDATA[laragon]]></category>
            <category><![CDATA[php-development]]></category>
            <dc:creator><![CDATA[Ariel Mejia Dev]]></dc:creator>
            <pubDate>Fri, 10 Jan 2020 11:36:01 GMT</pubDate>
            <atom:updated>2020-01-10T11:36:01.142Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LHW7OM31-LMjM0c6EATsLA.jpeg" /></figure><p>Many windows developers prefer to use phpmyadmin partly because of the time it has, partly also because of the features it has, laragon allows us to install it with just one click.</p><p>This guide provide two different ways, the one for the PHP default Laragon version and the recommended if you update Laragon manually to PHP 7.4</p><h3>PhpMyAdmin for PHP 7.2 (Default one from Laragon).</h3><ul><li>Click menu</li><li>Select tools/quick add/phpmyadmin</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/713/1*evp_YX5vjKtM00zZkFvoHw.png" /></figure><p>It will extract from phpmyadmin official site and it will install automatically, now you only need to click on database button, and it will pop up in the browser.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/669/1*Gr3jWuv9xjV3ZY6fs40Dtg.png" /></figure><h3>PhpMyAdmin for PHP 7.4 (latest).</h3><ol><li>Go to <a href="https://www.phpmyadmin.net/downloads/">https://www.phpmyadmin.net/downloads/</a> and download the version that support PHP 7.4 (4.9.3) <a href="https://files.phpmyadmin.net/phpMyAdmin/4.9.3/phpMyAdmin-4.9.3-all-languages.zip">hard link here</a>,</li></ol><p>2. then extract the zip file in the path “C:\laragon\etc\apps” and rename it to “PhpMyAdmin”,</p><p>3. open Laragon (if its open, reload Laragon) and press “database button”, it will load the PhpMyAdmin page.</p><h4>Login into phpmyadmin</h4><ul><li>Username: root</li><li>Password: leave it blank</li></ul><h3>Bonus disable login</h3><p>Go to the path “C:\laragon\etc\apps\phpMyAdmin”, you must search “config.inc.php” file and edit with a text editor search “auth_type”, you will see the next configuration:</p><p>Old Config</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/549/1*bIyKdQvS2L7NOXIj92lHIg.png" /></figure><p>New Config</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/547/1*Modss9Z9meyEhUYJaU1f6A.png" /></figure><p>The lines you need to change:</p><pre>$cfg[&#39;Servers&#39;][$i][&#39;auth_type&#39;] = &#39;config&#39;;//change cookie for config</pre><pre>$cfg[&#39;Servers&#39;][$i][&#39;username&#39;] = &#39;root&#39;;//add this line</pre><pre>$cfg[&#39;Servers&#39;][$i][&#39;password&#39;] = &#39;&#39;;//add this line</pre><p>Thanks for reading, the next part of this series will be “Add php extensions on Laragon”, if you find this series helpful please clap or share the post.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=faf414db463a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/ariel-mejia-dev/laragon-setup-series-part-3-add-phpmyadmin-to-laragon-faf414db463a">Laragon setup series Part 3 “add phpmyadmin to Laragon”</a> was originally published in <a href="https://medium.com/ariel-mejia-dev">Ariel Mejia Dev</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Laragon setup series part 1.]]></title>
            <link>https://medium.com/ariel-mejia-dev/laragon-setup-series-part-1-951e9e531b8f?source=rss----ea6efc26ce19---4</link>
            <guid isPermaLink="false">https://medium.com/p/951e9e531b8f</guid>
            <category><![CDATA[php-development]]></category>
            <category><![CDATA[laravel]]></category>
            <category><![CDATA[laragon]]></category>
            <category><![CDATA[php]]></category>
            <dc:creator><![CDATA[Ariel Mejia Dev]]></dc:creator>
            <pubDate>Mon, 06 Jan 2020 10:41:01 GMT</pubDate>
            <atom:updated>2020-01-06T10:41:01.335Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*icWgS-Z_u4e62Wt2JojQ6w.png" /></figure><p>If you are currently working with Laravel on windows, you will quickly realize that using development environments such as wamp or xampp can really be a real headache.</p><p>Laragon is a solution created specifically for modern development with php, includes in its installation several technologies such as, git, node, yarn, apache, nginx, ngrok, heydiSQL and composer also installers for Wordpress, drupal, symfony, and programs such as winscp, putty , notepad ++ and of course two laravel installers for zip installer and composer command installer.</p><p>All this technologies in one installer you only need to access to the official site: <a href="https://laragon.org/download/">https://laragon.org/download/</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zhFKQ1_I3zgfHsfO2S-GfA.png" /></figure><p>Laragon Full Edition is the best option to install your setup, you only need to click on download link and it will open source forge page, <br>you must wait 5 seconds until it is downloaded automatically, once downloaded the installer is installed like any application in windows, just click and next, next, next until the process is finished.</p><p>Now you can open the laragon app, to apply all technologies you will need to add Laragon to environment path, dont worry this is a breeze with laragon, you only need to click on menu link or right click on cog icon, then “Tools/ Path variables/Add laragon to path”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*s9MkL0gsyJ7pEx_97O1zSQ.png" /></figure><p>We will end up creating a project in laravel and setting the database.</p><ul><li>click on “turn on button”</li><li>click on menu link</li><li>select quick app/laravel</li><li>add a name for your project and click “ok” button</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/687/1*lxNNQCbmlOuH3K573JAsWg.png" /></figure><p>Now we are going to set the Database, when you use the quick app menu option, laragon makes the database with the same name as your app for you, you only need to set your credentials for database in your laravel app.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dLN901-yU34-bpFOe7hDaw.png" /></figure><p>The default values for databases is:</p><ul><li>DB_NAME=yourappname</li><li>DB_USERNAME=root</li><li>DB_PASSWORD=</li></ul><p>laragon set database without password so, leave DB_PASSWORD key empty, now to open the app you dont need to make a “php artisan serve” command, you only need to open the laragon window and in menu select “www” option and click on your project, and thats it:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/661/1*jAoIU5luxZoTbotGtxMJAw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SV25xeRSdxjVbGUupHGZCQ.png" /></figure><p>Thanks for reading, the next part will cover “update PHP to 7.4 or any future version on laragon”</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=951e9e531b8f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/ariel-mejia-dev/laragon-setup-series-part-1-951e9e531b8f">Laragon setup series part 1.</a> was originally published in <a href="https://medium.com/ariel-mejia-dev">Ariel Mejia Dev</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Create an specific version of Laravel project.]]></title>
            <link>https://medium.com/ariel-mejia-dev/create-an-specific-version-of-laravel-project-879df9d2d70c?source=rss----ea6efc26ce19---4</link>
            <guid isPermaLink="false">https://medium.com/p/879df9d2d70c</guid>
            <category><![CDATA[php]]></category>
            <category><![CDATA[composer]]></category>
            <category><![CDATA[laravel]]></category>
            <dc:creator><![CDATA[Ariel Mejia Dev]]></dc:creator>
            <pubDate>Mon, 23 Dec 2019 23:18:19 GMT</pubDate>
            <atom:updated>2019-04-19T16:45:28.686Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_-vJQqeCmpw-kghDFX8yJw.png" /></figure><p>If you have Composer install the comand to install laravel is:</p><pre>composer create-project laravel/laravel myApp</pre><p>This creates a project as “myApp”, but always it creates a project with the lastest stable version, at the moment of this post, Laravel 5.8, but what if I need to install other version, well the command line change a little:</p><pre>composer create-project laravel/laravel=&quot;5.5.*&quot; myApp</pre><p>Now you could have a project with version 5.5, this is helpful if you need to work with specific LTS version, if you need other version just change the version to any version you desire.</p><p>Thats all folks, Happy coding!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=879df9d2d70c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/ariel-mejia-dev/create-an-specific-version-of-laravel-project-879df9d2d70c">Create an specific version of Laravel project.</a> was originally published in <a href="https://medium.com/ariel-mejia-dev">Ariel Mejia Dev</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Laravel BigIncrements]]></title>
            <link>https://medium.com/ariel-mejia-dev/laravel-bigincrements-a719385f93a3?source=rss----ea6efc26ce19---4</link>
            <guid isPermaLink="false">https://medium.com/p/a719385f93a3</guid>
            <category><![CDATA[laravel]]></category>
            <dc:creator><![CDATA[Ariel Mejia Dev]]></dc:creator>
            <pubDate>Mon, 23 Dec 2019 23:18:08 GMT</pubDate>
            <atom:updated>2019-04-19T18:23:15.006Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*1RERMPCW2-x0N1a2nLsi-Q.jpeg" /></figure><p>Some weeks ago I had a migration that did not run so I wrote this for everyone that is searching for BigIncrements solution, it´s really easy but maybe some example and context will help you.</p><p>In Laravel 5.8 the default auth artisan command provide us with a migration with “Users” table and bigIncrements field as ID, it creates a column with a big integer type field, instead of integer type and… Why it´s important to post about it ?</p><p>If you try to use the “Users” id as foreign key it will throws and error at the time to create a migration, because maybe you will try something like this:</p><pre>Schema::create(&#39;authors&#39;, function (Blueprint $table) {<br>    $table-&gt;bigIncrements(&#39;id&#39;);<br>    $table-&gt;integer(&#39;user_id&#39;)-&gt;unsigned();<br>    $table-&gt;foreign(&#39;user_id&#39;)-&gt;references(&#39;id&#39;)-&gt;on(&#39;users&#39;);<br>    $table-&gt;timestamps();<br>});</pre><p>This code will fail because “user_id” will be referenced as integer type but in “Users” table id field type is a big integer, so the length it´s different and all it´s going to crash! So what´s the best solution?</p><p>At this point maybe you will need the id field from “Users” table as BigIncrements to use the easiest way to avoid that all crashes, it´s simple just reference “user_id” as “BigInteger” like this:</p><pre>Schema::create(&#39;authors&#39;, function (Blueprint $table) {<br>    $table-&gt;bigIncrements(&#39;id&#39;);<br>    $table-&gt;bigInteger(&#39;user_id&#39;)-&gt;unsigned();<br>    $table-&gt;foreign(&#39;user_id&#39;)-&gt;references(&#39;id&#39;)-&gt;on(&#39;users&#39;);<br>    $table-&gt;timestamps();<br>});</pre><p>With this little change you are going to have the same type in “Users” and “Authors” table, so the migration will work fine.</p><p>That´s all folks, happy coding!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a719385f93a3" width="1" height="1" alt=""><hr><p><a href="https://medium.com/ariel-mejia-dev/laravel-bigincrements-a719385f93a3">Laravel BigIncrements</a> was originally published in <a href="https://medium.com/ariel-mejia-dev">Ariel Mejia Dev</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Replace string in Flutter]]></title>
            <link>https://medium.com/ariel-mejia-dev/replace-string-in-flutter-c7ad5935542b?source=rss----ea6efc26ce19---4</link>
            <guid isPermaLink="false">https://medium.com/p/c7ad5935542b</guid>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[dart]]></category>
            <dc:creator><![CDATA[Ariel Mejia Dev]]></dc:creator>
            <pubDate>Mon, 23 Dec 2019 23:17:36 GMT</pubDate>
            <atom:updated>2019-06-03T23:19:07.652Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PF4g-KArgGHEDuhTHjD21w.jpeg" /></figure><p>In Dart we have a method named replaceAll() that allows you to cut a string of text, this method supports two parameters, the first one must be a string with the text section inside the text string that you want to replace and the second parameter the text that you want to replace, see an example:</p><pre>&#39;resume&#39;.<strong>replaceAll</strong>(&#39;e&#39;, &#39;é&#39;); // it returns the string   <em>&#39;résumé&#39;</em></pre><p>It is useful to work with strings and it can be assign to a variable:</p><pre>newString = &#39;resume&#39;;<br>newString.<strong>replaceAll</strong>(&#39;e&#39;, &#39;é&#39;); // it returns the string   <em>&#39;résumé&#39;</em></pre><p>But thats not all you can handle date objects and replace some piece of a date as string, with the use of the helper toString(), like this example.</p><pre>// returns 2019-06-20 00:00:00.000 as dateTime object<br>DateTime eventDate = DateTime.now();</pre><pre>// returns 2019-06-20 as string<br>Text(&#39;${eventDate.toString().replaceAll(&#39; 00:00:00.000&#39;, &#39;&#39;)}&#39;)</pre><p>And you can use a regex to search like a needle in a haystack:</p><pre>‘resume’.replaceAll(RegExp(r’e’), ‘é’); <em>// ‘résumé’</em></pre><p>Those are some examples of how to handle a string replacement with Dart in Flutter, if you have comments please be welcome to tell me, happy coding!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c7ad5935542b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/ariel-mejia-dev/replace-string-in-flutter-c7ad5935542b">Replace string in Flutter</a> was originally published in <a href="https://medium.com/ariel-mejia-dev">Ariel Mejia Dev</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Make an image with opacity layer in Flutter.]]></title>
            <link>https://medium.com/ariel-mejia-dev/make-an-image-with-opacity-layer-in-flutter-fca77e453731?source=rss----ea6efc26ce19---4</link>
            <guid isPermaLink="false">https://medium.com/p/fca77e453731</guid>
            <category><![CDATA[design]]></category>
            <category><![CDATA[dart]]></category>
            <category><![CDATA[flutter]]></category>
            <dc:creator><![CDATA[Ariel Mejia Dev]]></dc:creator>
            <pubDate>Mon, 23 Dec 2019 23:17:13 GMT</pubDate>
            <atom:updated>2020-07-03T19:31:34.792Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pYd7rqxSRKAadMBhLYtS0Q.jpeg" /></figure><p>With flutter you can add images to multiple decorations in containers, cards, avatars, hero images, image horizontal slider, ect, so you can one of the most commond UI designs are the colorized layers in images, in flutter is very easy to implement this feature with help of boxDecoration property.</p><pre>decoration:<br>BoxDecoration(<br>  color: const Color(0xff7c94b6),<br>  image: new DecorationImage(<br>    fit: BoxFit.cover,<br>    colorFilter: <br>      ColorFilter.mode(Colors.black.withOpacity(0.2), <br>      BlendMode.dstATop),<br>    image: new NetworkImage(<br>      &#39;http://www.server.com/image.jpg&#39;,<br>    ),<br>  ),<br>),</pre><p>color property is the color of the opacity layer so you could choose in different color options in Flutter you can use:</p><ul><li>RGBA : “Color.fromARGB(255, 66, 165, 245)”; Or “<strong>Color.fromRGBO(66, 165, 245, 1.0)”;</strong></li><li>Hex color as: “Color(0xFF42A5F5)”;</li><li>Even you can use material design color pallete with helper Colors like: “Colors.blue” for example.</li></ul><p>A boxDecoration property is valid in containers so you could use this to add a layer to a specific container and this container needs a child: so the child inside the container would be colorized too.</p><p>Another tip: to add darker layer you can add on “colorFilter” property:</p><pre>colorFilter: ColorFilter.mode(Colors.black.withOpacity(0.5),                                                    BlendMode.srcOver)</pre><p>Thats all for now folks, happy coding!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fca77e453731" width="1" height="1" alt=""><hr><p><a href="https://medium.com/ariel-mejia-dev/make-an-image-with-opacity-layer-in-flutter-fca77e453731">Make an image with opacity layer in Flutter.</a> was originally published in <a href="https://medium.com/ariel-mejia-dev">Ariel Mejia Dev</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>