Dealing with Depression and Anxiety, becoming a stronger, better self

As some of you readers may know me by now and possibly read my https://michaelbrooks.co.uk/post/dealing-with-performance-anxiety-and-depression-as-a-web-developer. Which explained how I went through a hard time with work and built up a lot of anxiety with myself and felt as though I wasn't a good enough developer. Well, I wanted to update on my progress as this year I was made redundant once again, and it was for the same reason. The company was in a struggle to find funding and therefore had to make some cuts.

ReactPHP and Symfony

I started listening to a https://phptownhall.com which talks a lot about different PHP and server technologies and on one of the later episodes, they talk about https://reactphp.org. https://reactphp.org is a great asynchronous solution for PHP and it offers non-blocking async which is fantastic and can be easily compared to NodeJS (although we won't be doing that here).

Docker has been fun, but it’s time to move on…

As a few of you may know, I have been using Docker for some time to deploy my site with. It's been a great learning experience for me and is something I wish to carry on with. However, because of the nature of the beast, and the lack of knowledge I have with the technology, I have decided that I shouldn't be using it to host my live Blog when I am still learning how it works.

Moltin API

I want to introduce you guys to an awesome e-commerce API called Moltin. It takes out so much hard work when it comes to creating an e-commerce platform and I have been working with the API to try and create an open source Laravel e-commerce platform which utilises the Moltin API as the core part of the app.

Hosting your site With Digital Ocean and Docker

I want to share with you how I am hosting my website with [Digital Ocean](https://m.do.co/c/d5aca73b366f) (hosting company) and [Docker](https://docker.com) (places your app in containers). First off, I created my droplet on DO and used the docker image from the list of "One-click Apps". The droplet was the $10 a month size as I don't currently need anything more. (If you want to try Docker for a month or two then [click here](https://m.do.co/c/d5aca73b366f)).

New Year, New Blog, New something?

I am really stoked to show you guys my brand new Blog built with https://octobercms.com. For my hosting, I have used https://m.do.co/c/d5aca73b366f (click the link for $10 free). Digital Ocean is a fantastic hosting company which I just love to use as they give you complete control over your VPS, and they even give you One-click apps to help you get started.

Using View Composers in Laravel 5.2

I have started using Laravel's View Composers which come in handy when you have a navigation bar that constantly needs certain data. For example, you have an ecommerce store and you need to poll how many items a user has in their basket on pretty much every page they move onto, or you need a login/register button when a user isn't logged in and then a profile options button when they are. You could be really lazy and add the same code/query into every single controller, which yes, that will work, but then that's not DRY (Don't Repeat Yourself). To fix this, we can complete a couple of simple steps and have one bit of code which will constantly be in use every time a certian partial is called.