Danny Herran https://dannyherran.com I make code do things for me Thu, 05 Nov 2020 17:50:07 +0000 en-US hourly 1 https://wordpress.org/?v=5.5.3 Laravel reCAPTCHA v2 Middleware in 3 minutes https://dannyherran.com/2020/11/laravel-recaptcha-v2-middleware/ https://dannyherran.com/2020/11/laravel-recaptcha-v2-middleware/#respond Thu, 05 Nov 2020 17:43:50 +0000 https://dannyherran.com/?p=879 I needed to add reCAPTCHA v2 to a couple of forms and most of the results on Google pointed to these large Composer packages that were simply too much. This article will cover how to do create a new Laravel Middleware to validate reCAPTCHA v2 requests with just a few lines of code. Time to […]

The post Laravel reCAPTCHA v2 Middleware in 3 minutes appeared first on Danny Herran.

]]>
https://dannyherran.com/2020/11/laravel-recaptcha-v2-middleware/feed/ 0
Git squash commits in VS Code https://dannyherran.com/2020/06/git-squash-commit-vs-code/ https://dannyherran.com/2020/06/git-squash-commit-vs-code/#respond Thu, 18 Jun 2020 16:37:49 +0000 https://dannyherran.com/?p=863 If you are looking to squash several commits into one in VS Code without having to use the console, I have a solution for you. First off you need the GitGraph plugin, which simply allows you to see the full git log history of your branches. This is handy when having to interact with specific […]

The post Git squash commits in VS Code appeared first on Danny Herran.

]]>
https://dannyherran.com/2020/06/git-squash-commit-vs-code/feed/ 0
Laravel Fractal pagination with simplePaginate https://dannyherran.com/2019/03/laravel-fractal-simplepaginate/ https://dannyherran.com/2019/03/laravel-fractal-simplepaginate/#respond Fri, 08 Mar 2019 18:29:30 +0000 https://dannyherran.com/?p=845 By default Fractal has native support for Laravel::paginate. Those using simplePaginate() have to resort to either using Fractal Cursors or build their own adapter. In this post, we are going to quickly build an adapter that fully supports Laravel::simplePaginate. This tutorial assumes you are using the amazing Laravel Fractal wrapper provided by the guys at […]

The post Laravel Fractal pagination with simplePaginate appeared first on Danny Herran.

]]>
https://dannyherran.com/2019/03/laravel-fractal-simplepaginate/feed/ 0
Importing Foundation 6.4 ES2016 JS files with your favourite module bundler https://dannyherran.com/2017/11/foundation-6-4-es2016-module-javascript/ https://dannyherran.com/2017/11/foundation-6-4-es2016-module-javascript/#comments Wed, 01 Nov 2017 18:51:05 +0000 https://dannyherran.com/?p=828 With the release of Foundation 6.4, they have moved to a module-based JavaScript architecture. This is great and definitely the way to go. Documentation is a bit lacking in this regard, however. I’ll quickly demonstrate in this article how to set up Foundation with your favourite module-bundler. Lets cut to the chase. Your JavaScript file […]

The post Importing Foundation 6.4 ES2016 JS files with your favourite module bundler appeared first on Danny Herran.

]]>
https://dannyherran.com/2017/11/foundation-6-4-es2016-module-javascript/feed/ 3
Redux or MobX: What I learned after refactoring a medium-sized React app https://dannyherran.com/2017/03/react-redux-mobx-takeaways/ https://dannyherran.com/2017/03/react-redux-mobx-takeaways/#comments Fri, 17 Mar 2017 16:15:43 +0000 https://dannyherran.com/?p=796 State containers are a must for medium to large-sized React applications. The basic idea is to keep the state abstracted from your components and manage it somewhere else. Using a state container like Redux or MobX allows you to share a global centralised state across all your components. This article is not a tutorial per […]

The post Redux or MobX: What I learned after refactoring a medium-sized React app appeared first on Danny Herran.

]]>
https://dannyherran.com/2017/03/react-redux-mobx-takeaways/feed/ 6
State of affairs: Bootstrap 4 vs Foundation 6.3 https://dannyherran.com/2016/03/state-of-affairs-bootstrap-4-vs-foundation-6/ https://dannyherran.com/2016/03/state-of-affairs-bootstrap-4-vs-foundation-6/#comments Mon, 28 Mar 2016 21:07:39 +0000 https://dannyherran.com/?p=767 Bootstrap 4 and Foundation 6 are the latest versions of the most widely used CSS frameworks out there. Foundation 6 is stable whereas Bootstrap 4 hasn’t been released yet. However, before you wonder why I am┬ácomparing a stable framework version vs an alpha one, let me set the record straight by saying that Bootstrap 4 […]

The post State of affairs: Bootstrap 4 vs Foundation 6.3 appeared first on Danny Herran.

]]>
https://dannyherran.com/2016/03/state-of-affairs-bootstrap-4-vs-foundation-6/feed/ 63
This is how you upgrade (or downgrade) the PHP version on EasyPHP for Windows https://dannyherran.com/2015/11/this-is-how-you-upgrade-the-php-version-on-easyphp-for-windows/ https://dannyherran.com/2015/11/this-is-how-you-upgrade-the-php-version-on-easyphp-for-windows/#comments Wed, 18 Nov 2015 14:59:27 +0000 https://dannyherran.com/?p=757 Since August 2015, the EasyPHP developers have moved their modules into a called “Warehouse” in which they will host up to date modules for their famous WAMP server. This Warehouse is now subscription based, and if you want to download a module, say, the latest or an old PHP version, you will need to pay […]

The post This is how you upgrade (or downgrade) the PHP version on EasyPHP for Windows appeared first on Danny Herran.

]]>
https://dannyherran.com/2015/11/this-is-how-you-upgrade-the-php-version-on-easyphp-for-windows/feed/ 2
These are the frontend web development tools that you should be using right now https://dannyherran.com/2015/11/tools-improve-frontend-development-productivity/ https://dannyherran.com/2015/11/tools-improve-frontend-development-productivity/#respond Sat, 14 Nov 2015 21:23:17 +0000 https://dannyherran.com/?p=672 If you like to be on top of the latest frontend technologies, then this is the right post for you. Let us go through the most widely used frontend tools that will help you boost your productivity by leaving the hard work into their hands. All these tools are console based, so make sure you […]

The post These are the frontend web development tools that you should be using right now appeared first on Danny Herran.

]]>
https://dannyherran.com/2015/11/tools-improve-frontend-development-productivity/feed/ 0
Why are frontend web development technologies so broken? https://dannyherran.com/2015/04/why-are-frontend-web-development-technologies-so-broken/ https://dannyherran.com/2015/04/why-are-frontend-web-development-technologies-so-broken/#respond Fri, 03 Apr 2015 14:25:01 +0000 https://dannyherran.com/?p=737 If you have worked in frontend web development lately, you probably have realised how messy the whole thing is. From languages that compile on top of other languages to the ridiculous amount of frameworks that are published every day. In fact, you are probably already struggling to keep up; but trust me. you are not […]

The post Why are frontend web development technologies so broken? appeared first on Danny Herran.

]]>
https://dannyherran.com/2015/04/why-are-frontend-web-development-technologies-so-broken/feed/ 0
Seamlessly validate forms and file uploads with CodeIgniter https://dannyherran.com/2014/07/validate-forms-file-uploads-with-codeigniter/ https://dannyherran.com/2014/07/validate-forms-file-uploads-with-codeigniter/#respond Sat, 12 Jul 2014 17:39:57 +0000 https://dannyherran.com/?p=361 The Form Validation class is great to validate simple input fields such as textareas, checkboxes, text fields, etc. But what about file inputs? If you have a mix of text and file inputs, your controller can get messy if you try to validate both. Lets take a look at a neat solution that only involves […]

The post Seamlessly validate forms and file uploads with CodeIgniter appeared first on Danny Herran.

]]>
https://dannyherran.com/2014/07/validate-forms-file-uploads-with-codeigniter/feed/ 0