PHPNews

SSH Authentication With Keys Instead Passwords

Written by Bosnadev – Code Factory - Published on Bosnadev – Code Factory
Aggregated on Friday January 23, 2015 - Permalink

SSH is a must have tool for every System administrator or DevOps Engineer. It provides you a secure way to access remote servers. But, if you use standard password authentication there is always a chance that someone will break into system due to weak password.  This potential risk increases if multiple users have SSH access to the server, because system administrator can’t influence to the users …

Continue reading »


Laravel Validation: Comprehensive Guide, part 1

Written by Bosnadev – Code Factory - Published on Bosnadev – Code Factory
Aggregated on Thursday January 29, 2015 - Permalink

Introduction In this tutorial I’ll cover different ways you can validate your data in Laravel 4. Almost every interactive web application requires some kind of data validation. For example, if your web application have registration form, you want email field to be unique or require from users to confirm their password. Laravel already has many standard rules to use within your validator, but if …

Continue reading »


Awesome Looking Terminal With Oh-My-Zsh

Written by Bosnadev – Code Factory - Published on Bosnadev – Code Factory
Aggregated on Thursday February 26, 2015 - Permalink

A lot of people asked me after reading my article A Brief Introduction to Laravel Envoy ,  how do I get my terminal window to look so awesome. It’s not that hard as it may look like, I keep it simple. Here is what I use: Guake terminal ZSH (Z shell) Oh-My-Zsh and of course Ubuntu GNU/Linux. As a developer, you can increase your productivity by using terminal. But, …

Continue reading »


Using Repository Pattern in Laravel 5

Written by Bosnadev – Code Factory - Published on Bosnadev – Code Factory
Aggregated on Saturday March 7, 2015 - Permalink

These days there is a lot of buzz about software design patterns, and one of the most frequently asked questions is “How can I use some pattern with some technology “. In the case of Laravel and the Repository pattern, I see often questions like “How I can use repository pattern in Laravel 4” or nowadays “..in Laravel 5” . Important thing you must remember is that design patterns do …

Continue reading »


Installing Icinga2 (fork of Nagios) on Debian 7 (Wheezy)

Written by Bosnadev – Code Factory - Published on Bosnadev – Code Factory
Aggregated on Thursday March 19, 2015 - Permalink

Preface Icinga is a fork of Nagios  monitoring system. There are lots of changes and upgrades compared to Nagios, especially in version 2. The main visible difference is UI which is built on ext js. Other significant differences are in hosts and services definitions (it will be covered in part 2). For this tutorial we’re going to use Digital Ocean  smallest droplet with installed Debian …

Continue reading »


Using Repository Pattern In Laravel 5 – Eloquent Relations And Eager Loading

Written by Bosnadev – Code Factory - Published on Bosnadev – Code Factory
Aggregated on Thursday March 26, 2015 - Permalink

Preface Before we go to the main topic of the article, I’ll give you a short heads up for some design problems you may face. Recently one of my clients complained that some pages open very slowly. When I say very, I mean incredibly slow. So I’ve decided to debug that page and what I saw shocked me. Query section was showing that on that page was executed an staggering 16500+ queries !! I …

Continue reading »