I was going through some of my morning feeds and there was a question on where validation should be done. In Laravel you have three good options to choice from. You can do your validation in your controller, in the model or in Form Requests. The things I hate most about doing the validation in the controller is the consistency in the rules I write. So in one post someone did a simple thing in their model. They simply added a static property to their models that had their rule set. It was simple and at the time time, I somehow missed it as an option. So if you don’t want to use the Form Request or do any validating in the model, you can add the ruleset property to your model to keep it consistent across your controller.
This initial post is not a detailed comparison between the two at this time but a way to keep me on track with blogging. I have started working on a few personal projects that I hope will turn into something more than just a hobby. I like Laravel but have struggled to find the best environment to develop with. At work we have our own AWS instance for each developer that we can push code to, but that involves having to either pushing to git and then cloning down, or doing what I do, and push changes using PHPStorm deployment process. Either way takes just a little bit of time to have the code in a environment that can be tested. So to solve this problem, I have been testing out both Docker and Homestead.
Currently I am running a Dell Laptop with 8GB of RAM, so running either solution is working out really well. I also use OneDrive to Sync. the folder with all of my development code due to past experience. I do use GitHub and BitBucket but I don’t always throw my prototype code in a Repo until I am further along. This has cost me some time in the past, so OneDrive it is.
I have played around with Docker and I do like the way it is setup After searching the internet for tutorials and quick starts, I did find https://github.com/laradock/laradock which got me moving pretty quick. I started my project and everything was going fine. It boots pretty quick, not overly resource intensive and I was able to switch technologies pretty fast. The problem I am having is OneDrive is not liking docker and it was causing sync issues and not updating the code for Docker. I have not sat down to find a solution, so I may have to come back to this at a later date.
The reason I started trying out Homestead was the fact I like Laravel and since this was setup for the framework, it works out really great. So far I have not had any issues with OneDrive and for my needs for local development, it is great. With the use of Vagrant and Virtualbox you do see more resources being chewed up, plus it does take a little longer to boot up. I did set it up as a per project installation so that I can have different configurations if the need arises.
I am still trying to explore both as a development platform and not a production platform, so we will see where it leads me. With Homestead I know I am working in the same environment that Forge uses for it’s deployments, so I should never have a big surprise.
I am hoping that in the next few weeks I will be able to announce some good news. I am trying to open up my career and hopefully become apart of a growing project. I am confident, but I also know there are a lot of qualified developers that could get the opportunity over me. So I am hoping I can say more in the next few weeks.
I am also working on a project that I hope to release publicly in a few months. One of my main goals was to release more of my own code and hopefully become a better programmer.
With the holiday season starting to wind down I have started playing around with a few projects and a few development environments. I have been wanting to play around with Docker and found a nice little “head start” repo for PHP developer. If you are wanting to check out Docker and are a PHP developer, check out https://github.com/laradock/laradock and I don’t think you will be disappointed. As I start to play around with Docker I am sure I will work on my own setup, but for now, this one has worked out really well. If you know of any better starter kits, please let me know in the comments.
I have a few private projects in my GitHub account, but those should start to lead to some more public projects to share and to keep on my goal of having more public code. I have been approached for an outside project and if it becomes something interesting, I hope to be able to share that as well. I hope this will lead to some more material to post about!
I have been reading a few blogs posts that state that, as a developer, I should be keeping my own blog and my own portfolio of work that I do. The problem is, I can not always think of a great subject to talk about. I do feel like I am a very capable developer, but I am by far not a subject level expert. I believe the big reason for that is, I like to jump around and learn a little bit of everything. So this coming year I hope to start thinking of topics to write about and to find a way to narrow down a field of interest in development.
Another thing I hope to do this coming year is work on more projects that are not work related that I can start sharing and building up my personal portfolio of code. I am not going to code just to code, but try and find things that I like and maybe rebuild them in order to learn and maybe have something come out that could be of use to others.
My other mission, if I can find a way to pull it off, is to become a small business owner. I have spent the last few months researching existing business in there area that could use a person of my skill set to build them up again. They are older businesses that are doing OK, but don’t seem to have ANY automation in order to make their life easier. They are also not up to par on how to use social media to help market their business. The big obstacle I have had is, well, money! I have tried to negotiate on a seller finance deal, but the retiring owner wanted nothing to do with it. The SBA or the banks will deal with loans to buy or start a business either. If they do, they want your next three kids!
So there you have it, my main missions for the new year that is fast approaching! We will see what the future will hold!
With the complete re-write of the client library, I now give you v2! https://github.com/rearley/ebay
I have decided to try something new when it comes to working on my PHP knowledge. I would like to think that I am a pretty good developer and can do anything that is required of me in my professional career. But there are times where I will try a silly little PHP test for a freelance site and realize that there is so much more that I don’t know because either I don’t have a need for areas of PHP or I don’t know of functions that could make my job a lot easier. So to help learn some of the other functions within the language I am going to try and learn a small section of PHP each day. I had thought about posting about those sections just to make sure that I am setting that time aside, but I am still not 100% sure if I will or not.
I have no idea how many, if anyone at all, reads this blog. But I created it for my own use as well as some of the projects that I am working on. So if I do post things that I am exploring that day within the PHP language and you find it useful, make a comment or send me an email and I will make more of a habit to add more posts to the site.
Well, just joined and was approved for the ProFinder network. You can find my profile here: https://www.linkedin.com/pro/rearleydev so go check it out and if you know anyone looking for web services, please send them my way.
Well I have started re-writing the whole client library to remove some of the complexity and add a lot more flexibility for changes that may occur in the Ebay API. Working on the unit tests before moving this re-write into a version. Stay tuned!
After doing some research and asking others for their suggestions on how they deal with scheduling, it appears the most common answer is to stick with digital for timed appointments.
I am going on my second week of using my Bullet Journal and the one part I could not warp my head around was events and their start/end times. I wanted to maintain things in one nice little place but that does not seem to be the best solution for me right now. I still have a analog calender that gets updated with events and their start/end time, but that is not included in my journal. I also keep my Google Calender updated with the events since all of my devices sync up.
It seems like I am adding things to different places which is not the most efficient way, but for now this is the approach I am going to stick with. It might end up where I just stay with the digital side of the house when it comes to future events and appointments to make use of the reminders that I get while sticking with just recording that the event occurred in my Bullet Journal.
So far I have enjoyed my journal and it has gotten me to re-think items that I place on my TODO list and I seem to get more things done with this method. We will just see if that contiunes as the year goes on and our life starts to get really busy.