A long while back, I said I would love to create and document making a social networking website using the Laravel framework, well that hasn't happened, like at all.
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.
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).
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.
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.
This evening, I had myself a little challenge. I would turn my two containers (MariaDB and my own built container) into more containers, but using… Read MoreHow to containerize your PHP/NGINX docker project properly »
At the beginning of this week, I had decided to give myself a little project of creating an app for the Windows 10 ecosystem. I wanted to my website to be a Windows 10 app and I wanted to create this with as little effort as possible.
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)).
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.
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.