Bobby Iliev

@bobbyiliev

4997 Points

76 Followers

128 Posts

249 Answers

Joined March 6th, 2019

I am a professional System Administrator with a demonstrated history of working in the internet industry. I am an avid Linux lover and supporter of the open-source movement philosophy.

How to Automatically Run Your Laravel PestPHP Tests on Each GitHub Pull Request?

How to Automatically Run Your Laravel PestPHP Tests on Each GitHub Pull Request?

Introduction PestPHP was created by Nuno Maduro who is also one of the Laravel core team members. PestPHP is an open-source PHP Testing framework created with simplicity in mind. PestPHP is being really actively developed and there are already plenty of learning materials online despite the fact that it is relatively new. In thi...

Bobby Iliev

6 days ago

9
Select One:
How to optimize MySQL to speed up your Laravel application with Releem?

How to optimize MySQL to speed up your Laravel application with Releem?

Introduction Optimizing your MySQL service is a great way to improve your Laravel application's overall performance. Of course, it is important to follow Laravel Eloquent's best performance practices as described in Jonathan Reinink's course on Laravel Eloquent performance patterns. But you should also not forget the server-side...

Bobby Iliev

2 weeks ago

7
Select One:
How to keep a process running even after closing SSH connection?

How to keep a process running even after closing SSH connection?

Introduction There are many reasons why you would like to keep a process running even if you close your SSH session. Here are a few examples: Your working day is going to be over soon and you are running a huge database import that's taking a long time to complete, you would not want to stay and wait for the import to complete...

Bobby Iliev

3 weeks ago

5
Select One:
💡 Free Laravel Tips and Tricks eBook

💡 Free Laravel Tips and Tricks eBook

This is an open-source Laravel Tips and Tricks eBook that is a collection of my own notes that I've put together for myself throughout the years. You would more likely than not need many of those tips at some point in your career as a Laravel Developer. The guide is suitable for anyone working as a Laravel developer and would lo...

Bobby Iliev

1 month ago

8
Select One:
How to limit the result with Laravel Eloquent?

How to limit the result with Laravel Eloquent?

Introduction The Eloquent ORM included with Laravel provides you with an easy way of interacting with your database. This simplifies all CRUD (Create, read, update, and delete) operations and any other database queries. Laravel provides a lot of handy methods that you could use to work with your Eloquent collections. More often...

Bobby Iliev

2 months ago

9
Select One:
How to get the current date and time in Laravel?

How to get the current date and time in Laravel?

Introduction Working with date and time could be pretty challenging. Luckily we have the Carbon package that makes this super easy! Carbon is a simple PHP API extension for DateTime. You can find more information about Carbon on their official website here. Laravel also provides a lot of handy methods that you could use througho...

Bobby Iliev

2 months ago

11
Select One:
How to Delete All Entries in a Table Using Laravel Eloquent?

How to Delete All Entries in a Table Using Laravel Eloquent?

Introduction The Eloquent ORM included with Laravel provides you with an easy way of interacting with your database. This simplifies all CRUD (Create, read, update, and delete) operations and any other database queries. Laravel provides a lot of handy methods that you could use to work with your Eloquent collections. More often...

Bobby Iliev

2 months ago

11
Select One:
How to Get the Base URL in Laravel?

How to Get the Base URL in Laravel?

Introduction Hardcoding the domain name in your Blade files or in your controllers is not a good practice. If you ever decided to change your website's domain name, you would have to manually go over all of your files and change the references of your website from the old domain to the new one. This is why Laravel provides a cle...

Bobby Iliev

3 months ago

9
Select One:
How to Order the Results of all() in Laravel Eloquent?

How to Order the Results of all() in Laravel Eloquent?

Introduction The Eloquent ORM included with Laravel provides you with an easy way of interacting with your database. This simplifies all CRUD (Create, read, update, and delete) operations and any other database queries. Laravel provides a lot of handy methods that you could use to work with your Eloquent collections. More often...

Bobby Iliev

3 months ago

8
Select One:
How to Count and Detect Empty Laravel Eloquent Collections?

How to Count and Detect Empty Laravel Eloquent Collections?

Introduction The Eloquent ORM included with Laravel provides you with an easy way of interacting with your database. This simplifies all CRUD (Create, read, update, and delete) operations and any other database queries. Laravel provides a lot of handy methods that you could use to work with your Eloquent collections. In this tut...

Bobby Iliev

3 months ago

9
Select One:
How to Set a Variable in Laravel Blade Template?

How to Set a Variable in Laravel Blade Template?

Introduction The Blade templating engine has been a real game-changer for me. Blade makes it working with PHP and HTML a breeze. It allows you to use plain PHP code directly in your template. In most cases, you will pass your variables from your controller to your Blade views, but you might want to set a variable directly in you...

Bobby Iliev

3 months ago

10
Select One:
How to Remove a Migration in Laravel?

How to Remove a Migration in Laravel?

Introduction Adding columns or tables to your database manually could be an intimidating process and would more often than not lead to database inconsistencies between your different environments. The Laravel migrations allow you to basically version control your database so that all members of your team could have a consistent...

Bobby Iliev

3 months ago

9
Select One:
How to fix Laravel Unknown Column 'updated_at'?

How to fix Laravel Unknown Column 'updated_at'?

Introduction The Eloquent ORM included with Laravel provides you with an easy way of interacting with your database. This simplifies all CRUD (Create, read, update, and delete) operations and any other database queries. As described in the official Laravel documentation, Eloquent expects the created_at and updated_at columns to...

Bobby Iliev

3 months ago

7
Select One:
How to Select Specific Columns in Laravel Eloquent?

How to Select Specific Columns in Laravel Eloquent?

Introduction The Eloquent ORM included with Laravel provides you with an easy way of interacting with your database. This simplifies all CRUD (Create, read, update, and delete) operations and any other database queries. In some specific cases you might not want to get all of the columns from a specific table but just one or some...

Bobby Iliev

3 months ago

9
Select One:
What is a Fork Bomb in Linux and how to stop it?

What is a Fork Bomb in Linux and how to stop it?

Introduction A fork bomb (also known as a rabbit virus) is a denial-of-service attack that consists of a process that constantly replicates itself to exhaust all available system resources, slowing down or crashing the system due to resource starvation. Here's an example of the most popular fork bomb in Linux: :(){ :|:& };:...

Bobby Iliev

3 months ago

8
Select One:
Work with me - a 25 Minutes Pomodoro Video Session

Work with me - a 25 Minutes Pomodoro Video Session

Need to get some work done? Let's be productive together! You can use this video as a timer for your Pomodoro sessions. The idea behind the Pomodoro sessions is to separate your tasks into small 25 minute blocks and take 5-minute breaks after each session. Here's how my sessions usually go: I make a to-do list for the day. In...

Bobby Iliev

3 months ago

7
Select One:
17 Special Characters in the Shell That You Should Know

17 Special Characters in the Shell That You Should Know

Introduction In Unix systems, the shell is a command-line interpreter. It provides a command-line user interface (CLI). The shell is a scripting language that you could use to write scripts like any other programming language and it is also an interactive command language. It is used by the operating system to control the execut...

Bobby Iliev

3 months ago

9
Select One:
Opensource Introduction to SQL eBook 💡

Opensource Introduction to SQL eBook 💡

This is an open-source introduction to SQL guide that will help you learn the basics of SQL and start using relational databases for your SysOps, DevOps, and Dev projects. No matter if you are a DevOps/SysOps engineer, developer, or just a Linux enthusiast, you will most likely have to use SQL at some point in your career. The g...

Bobby Iliev

4 months ago

11
Select One:
Introduction to Git and GitHub Crash Course + Giveaway ⭐

Introduction to Git and GitHub Crash Course + Giveaway ⭐

Introduction Hello everybody! Welcome to this Introduction to Git and GitHub video series, where you will learn the basics of Git and start using it for your day-to-day tasks. My name is Bobby and I've been working as a Linux system administrator for the past 7 years and a few months ago I wrote an opensource eBook on how to get...

Bobby Iliev

4 months ago

8
Select One:
How to fix 'Please provide a valid cache path' error in Laravel?

How to fix 'Please provide a valid cache path' error in Laravel?

Introduction The other day, I was setting up a local development environment for an existing project when I encountered the 'Please provide a valid cache path' error. As the error itself is not very descriptive and could leave you thinking that something is wrong with your configuration, I've decided to write a short post on how...

Bobby Iliev

4 months ago

7
Select One:
How to Define Custom ENV Variables in Laravel?

How to Define Custom ENV Variables in Laravel?

Introduction If you have some experience with Linux, you are probably quite familiar with environment variables. In Linux, you could check the available environment variables with the printenv command. A way to define environment variables in Linux would be to use the export command followed by the variable that you want to defi...

Bobby Iliev

4 months ago

10
Select One:
Use Composer like a Pro - the Dependency Manager for PHP

Use Composer like a Pro - the Dependency Manager for PHP

Introduction Composer is without the go to dependency manager for PHP. Composer is a command line tool that you can use to install packages to your projects and also update and manage existing packages. If you are coming the JavaScript world you could consider composer as the dependency manager for PHP similar to NPM for JavaScr...

Bobby Iliev

5 months ago

14
Select One:
10 SaaS Startups Ideas to Build in 2021

10 SaaS Startups Ideas to Build in 2021

Introduction Software-as-a-Service, or SaaS for short, in most cases, is a platform that provides a specific service on a monthly or yearly subscription plan. Popular SaaS products are Netflix, Spotify, Dropbox, and Slack. They all offer a specific service which you pay a certain amount for every month. Running a SaaS business c...

Bobby Iliev

5 months ago

13
Select One:
What are signed routes in Laravel and how to use them?

What are signed routes in Laravel and how to use them?

Introduction Signed routes allow you to create routes accessible only when a signature is passed as a GET parameter. This could be used for sharing a preview of a draft article or any other route that you want to be public but only accessible by people who have the signature. You could also use signed routes to allow them access...

Bobby Iliev

5 months ago

11
Select One:
How to Create Response Macros in Laravel?

How to Create Response Macros in Laravel?

Introduction Response macros allow you to create a custom response which you could later on re-use in different routes and controllers. This is quite beneficial in order to reduce code duplication. You could actually built macros for other Laravel components as well, but in this tutorial, you will learn how to create a route mac...

Bobby Iliev

5 months ago

10
Select One:
Custom Namespaces to Organize Your Controllers

Custom Namespaces to Organize Your Controllers

Introduction In some cases, when you have too many Controllers in your Laravel project, your app/Http/Controllers directory might get cluttered with too many Controllers. To keep things more organized, you could use custom Laravel namespaces to store your Controllers in different directories inside the app/Http/Controllers direc...

Bobby Iliev

5 months ago

7
Select One:
Open-source Introduction to Git and GitHub eBook 💡

Open-source Introduction to Git and GitHub eBook 💡

💡 Introduction to Git and GitHub This is an open-source introduction to Git and GitHub guide that will help you learn the basics of version control and start using Git for your SysOps, DevOps, and Dev projects. No matter if you are a DevOps/SysOps engineer, developer, or just a Linux enthusiast, you can use Git to track your cod...

Bobby Iliev

6 months ago

13
Select One:
The 10 Most Popular PHP Frameworks and Their Creators

The 10 Most Popular PHP Frameworks and Their Creators

Introduction It would be really intimidating if you had to start from scratch and reinvent the wheel every time you were to start a new project. Luckily in 2021 there is a vast number of brilliant PHP frameworks out there that you can use. In my opinion using a framework is a must as it would help you structure your project, so...

Bobby Iliev

6 months ago

7
Select One:
How to Rollback Database Migrations in Laravel?

How to Rollback Database Migrations in Laravel?

Introduction Laravel comes with many convenient tools out of the box, which makes your life as a developer much more enjoyable. One of the best Laravel features is the database migrations which essentially allow you to version control your database! In this tutorial, you will learn how to rollback your database migrations in Lar...

Bobby Iliev

6 months ago

7
Select One:
9 Basic Docker Commands with Examples

9 Basic Docker Commands with Examples

I would be running the commands on a Digital Ocean droplet running Ubuntu 18.04. Prerequisites If you don't have a DigitalOcean account yet, you can sign up for DigitalOcean and get $100 free credit via this link: digitalocean.com Before we get started, you can follow these steps here on the devdojo website on how to install Doc...

Bobby Iliev

6 months ago

7
Select One:

Loading More Content