Join 37,053 other Developers as we Learn, Build, and Grow Together.

Connect with fellow developers and gain access to tools that will help you build a profitable SaaS πŸš€

Sign Up

Php

Php posts, videos, courses, and more

How To Install Linux, Apache, MySQL, PHP (LAMP) stack on Ubuntu

How To Install Linux, Apache, MySQL, PHP (LAMP) stack on Ubuntu

In this video you will learn how to Install Apache, MySQL, PHP (LAMP) stack on Ubuntu server.If you are new to DigitalOcean, you could use my referral code and you would get a free $100 credits so you could spin up your own Linux servers in seconds:https://m.do.co/c/2a9bba940f39For more information make sure to check out this tu...

Bobby Iliev

4 weeks ago

2
Select One:
6 Tips and Tricks Every Developer Should Know in Visual Studio Code 🀩

6 Tips and Tricks Every Developer Should Know in Visual Studio Code 🀩

One of the most common text editors used by developers is Visual Studio Code. Microsoft created it to be the first cross-platform programming tool in the Visual Studio family that supported OS, Linux, and Windows .Visual Studio Code is by far one of the most popular code editors for web, mobile, and hardware developers. In this...

Zahab Kakar

1 month ago

8
Select One:
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

1 month ago

10
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

2 months ago

8
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

4 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

4 months ago

9
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

4 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

4 months ago

10
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

4 months ago

7
Select One:
How to create a simple CLI app with MiniCLI.

How to create a simple CLI app with MiniCLI.

In this post we're covering how to create a simple CLI app with the help of MiniCLI. What we'll be creating is a small CLI tool to ping websites. Setting up our requirements. The first thing we do is to create a folder for our new tool, which I'll name ping-cli and require the minicli/minicli package. composer require minicli/mi...

Kim Hallberg

4 months ago

4
Select One:
You don’t necessarily need Composer

You don’t necessarily need Composer

Don't get me wrong, Composer is an amazing product. It has an easy-to-use API for quick autoloading, supports multiple standards, and has autoloading optimization built-in - it even lets you search and require packages easily. It's a reason Composer is the most used package manager for PHP. If your project is a lightweight OOP p...

Kim Hallberg

5 months ago

7
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

6 months ago

14
Select One:
How to host multiple WordPress websites on the same server

How to host multiple WordPress websites on the same server

In this video, I will show you how to host multiple WordPress websites on the same server!Useful links:- $100 free DigitalOcean Credit- Install WordPress on Ubuntu 20.04 step by step guide

Bobby Iliev

6 months ago

2
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

7 months ago

7
Select One:
Web developer roadmap in 2021 and beyond

Web developer roadmap in 2021 and beyond

If you found value in this thread you will most likely enjoy my tweets too so make sure you follow me on Twitter for more information about web development and how to improve as a developer. 1. Learn how the internet works Zero to mastery playlist MDN Introduction 2. Learn HTML HTML Crash Course For Absolute Beginners Basic HTML...

Vlad Pasca

8 months ago

1
Select One:
Generate random color gradient background

Generate random color gradient background

When users fail to adhere to your imaginary design guide you need to arm yourself to keep the look you aimed for when creating your website. In this article I'll share one of my favourite secret design weapons :) The missing image Let's pretend you made this astonishing blog grid: You'll be disappointed when users don't attach...

Tina Hammar

8 months ago

9
Select One:
How to create an eBook from Markdown using Ibis?

How to create an eBook from Markdown using Ibis?

Introduction A few months ago I wrote an open-source eBook on how to get started with Bash Scripting. This is when I came across a tool called Ibis created by Mohamed Said who is a Developer at Laravel. Ibis allows you to generate an awesome PDF for your eBook, and you can just use markdown! In this tutorial, I will show you how...

Bobby Iliev

8 months ago

8
Select One:
Dabbling with JSON, Object and Array conversions

Dabbling with JSON, Object and Array conversions

This article mostly mentions working with JSON data, but the helpers we will create, are also very useful when you want to convert between stdClass objects and Arrays. The syntax for handling JSON data in php can feel overwhelming. On the other hand, indexed php arrays aren't nice on your keyboard either. In applications where...

Tina Hammar

8 months ago

3
Select One:
Quick Introduction to PHP OOP Basics Crash Course

Quick Introduction to PHP OOP Basics Crash Course

Introduction OOP stands for Object-Oriented Programming and it is used by almost all of the major programming languages. For example, PHP, Phyton, Java, C#, and many more. If you don't know what OOP is and how it works, don't worry. We are going to show you and explain what OOP is used for. As OOP is so widely used, you should g...

Bobby Iliev

9 months ago

10
Select One:
What is the $this keyword and how to use it in PHP

What is the $this keyword and how to use it in PHP

Introduction The $this keyword is one of the most important and helpful things in PHP OOP(Object Oriented Programming). And unfortunately, it's one of those things that get overlooked. Many people may have heard of this keyword but don't know how to use it. In this post, I am going to briefly explain what the $this keyword is an...

Bobby Iliev

9 months ago

12
Select One:
Why you should become a web developer

Why you should become a web developer

Introduction These days there are so many career choices to take in the programmer world. But one of the most successful and important ones is Web Development. There are so many companies out there that are on the constant look for web developers and designers. And the good thing is that these companies and businesses are increa...

Bobby Iliev

10 months ago

11
Select One:
Dependency Injection in 60 seconds

Dependency Injection in 60 seconds

Dependency Injection allows developers to pass classes or objects to a constructor or method. The dependency (class) is injected into the method.Utilizing Dependency injection can help keep our Classes loosely coupled and managed.You can learn more about the Laravel Dependency Injection by visiting: https://laravel.com/docs...

Tony Lea

1 year ago

4
Select One:
Laravel Gates

Laravel Gates

Laravel Gates allows you to authorize users from accessing certain areas of your application. You can easily define gates in your application and then use them to allow or deny access. Let's start things off with a simple example of granting access without Gates, and then you'll see how we can use Gates as an alternative. Simple...

Tony Lea

1 year ago

7
Select One:
How to generate title slugs in Laravel?

How to generate title slugs in Laravel?

Introduction If you are not sure what a slug exactly is, you should go through this post here first: https://devdojo.com/devdojo/what-is-a-slug There are many reasons why you would want to have a nice slug for your posts rather than accessing them via their ID, for example. In this tutorial, you will learn how to use the title o...

Bobby Iliev

1 year ago

9
Select One:
Let's validate some DNS TXT records. πŸ‘

Let's validate some DNS TXT records. πŸ‘

Here's a scenario, let's say you have users. And those users can sell domains, or maybe add their domains to their profile. Now you can validate that they own that domain multiple ways. You could have them send a picture of the dashboard showing the domain. Or you could have them create a page just for you. While both of these s...

Kim Hallberg

1 year ago

10
Select One:
Creating default user initial avatars in PHP 7

Creating default user initial avatars in PHP 7

This post had some traction on my dev.to profile, so I thought, why not add it here as well. What are "default" avatars? When it comes to user-uploaded material, such as avatars, for instance, some users might refrain from uploading one and, in those instances providing a sensible fallback is an appropriate thing to do...

Kim Hallberg

1 year ago

9
Select One:
Laravel 7 Basics

Laravel 7 Basics

In this video series I will teach you the basics about Laravel 7. This series is for anyone who does not know Laravel and wants to learn the basics. You will need to know the basics of PHP to get the most out of this series.In this beginner Laravel series we will be covering the following:

Tony Lea

1 year ago

14
Select One:
PHP Basics

PHP Basics

In this course you are going to learn the basics of PHP. In this course we'll cover the following topics:

Tony Lea

1 year ago

9
Select One:
Introducing Pest - An elegant PHP testing framework

Introducing Pest - An elegant PHP testing framework

Pest is a testing framework for PHP that provides an elegant interface over the top of PHPUnit.It is a framework-agnostic testing framework, but we'll be learn all about it using Laravel as a base.https://pestphp.com

Michael Dyrynda

1 year ago

Select One:
How to Create Custom Laravel Maintenance Page?

How to Create Custom Laravel Maintenance Page?

Introduction More often than not you would need to perform some maintenance for your Laravel website. Luckily Laravel makes it super easy to put your application in maintenance mode! In this tutorial, I will show you how to do that, and also how to change the default Laravel maintenance page with a custom maintenance page that m...

Bobby Iliev

1 year ago

8
Select One:

Loading More Content