Welcome to the DevDojo

Join our developer community and we can all learn together, build together, and grow together.

Php

Php posts, videos, courses, and more

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 Classe...
Dependency Injection in 60 seconds

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 thi...
Laravel Gates

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...
How to generate title slugs in Laravel?

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...
Let's validate some DNS TXT records. 👍

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 instanc...
Creating default user initial avatars in PHP 7

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...
Laravel 7 Basics

PHP Basics

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

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,...
How to Create Custom Laravel Maintenance Page?

Why developers hate PHP

I am a developer and I'm also very fond of PHP, which seems to get dragged through the mud a lot. I used to refrain from telling people that I was a "PHP" developer, afraid that I would get...
Why developers hate PHP

Fun tech quiz questions directly in your terminal

Introduction Quizzes are a great way to test your knowledge on a specific topic. So I decided to create a tool called the Quiz API! Quiz API is a simple HTTP REST API for technical quizzes including...
Fun tech quiz questions directly in your terminal

Top PHP Frameworks and Tips to hire a PHP developer

FrameworkFrameworkPHP (Hypertext Preprocessor) is the oldest and widely used programming language. Presently, many businesses are opting for the PHP language for their website to mark the online prese...
Top PHP Frameworks and Tips to hire a PHP developer
1
Select One:

Laravel App on Digital Ocean Ubuntu 19.04 droplet (Step by Step Guide)

This is a step by step guide on how to create a new droplet via your Digital Ocean control panel, manually install and configure your LAMP stack, deploy Laravel and then install Voyager.We will go tho...
Laravel App on Digital Ocean Ubuntu 19.04 droplet (Step by Step Guide)

The Utility of PHP Generators

A generator in PHP is a function that allows us to iterate over data without needing to build an array in memory. Unlike a standard function, which can return only a single value, a generator can yiel...
The Utility of PHP Generators
1
Select One:

Installing PHP on Windows

Most tutorials for installing PHP on Windows involves installing MAMP or XAMP, which are great solutions; however, sometimes you may want a solution to install PHP by itself. If so, this tutorial...
Installing PHP on Windows

How to run a php script in background

How to run a php script in backgroundWhen we need to run some script without waiting the fronted user till the process is not completed, For that we need to execute some script in background to hiding...
How to run a php script in background

Laravel Telescope

IntroductionTelescope is a new wizard to debug a Laravel application. It gives us access to a wealth of information on the queries that enter the application, exceptions, queries to the database, queu...
Laravel Telescope

laravel -- Localisation

When creating a site it is often in a multi-language perspective. This is called internationalization (i18n) and localization (L10n). Internationalization is about preparing an application to make it...
laravel -- Localisation

Getting a user’s country, currency, timezone or language from their IP address

In many projects in the past, when I’ve had to use a Geo IP API service to look up a user’s IP address, it was usually for one of several reasons — getting the user’s country (for geo-locking certain...
Getting a user’s country, currency, timezone or language from their IP address

Custom Global Helpers in Laravel

Laravel has some pretty awesome helpers. You've probably used them several times throughout your application. For instance to get the current URL you can use the url() helper, or to return a user back...
Custom Global Helpers in Laravel

The PHP Singleton Class

In this video we will show you how to create a PHP singleton class and why you may want to use it. We'll show you how to create a basic class and a similar implementation with a singleton class.A Sing...
The PHP Singleton Class

Laravel Notifications

Notifying users of various things that happen in your application is super easy to implement thanks to Laravel Notifications. Laravel notifications allow you to send a message to any user via Email, S...
Laravel Notifications

PHP Namespaces

In this video you will learn about PHP namespaces. You will learn why the are useful and how to use them.If you have a file located at App\Ninja\Weapon.php you will probably want to give it a namespac...
PHP Namespaces

Glide PHP

In this video we'll show you how to do on-demand image manipulation with Glide PHP and Laravel. Using Glide you can easily create perfectly sized images to fit into any theme or front-end Laravel appl...
Glide PHP

What is a PHP Trait

What is a PHP Trait

PHP DateTime with Carbon

Using DateTime in PHP can sometimes be a hassle. Luckily enough there is an awesome PHP library that we can use called Carbon. Carbon allows us to easily manipulate dates using PHP.Now something...
PHP DateTime with Carbon

PHP7

PHP7

Using Namespaces in PHP

Using Namespaces in PHP

PHP classes in a nutshell

PHP classes in a nutshell

Create a PHP Login Script

Most Web apps require some form of user authentication. In this video tutorial we will teach you how to create a php login script from scratch. There are 6 files including the style.css file included...
Create a PHP Login Script

How to create a Video Membership Site

Let's say you wanted to create your own Video Membership site. What would you use for that? Your first instinct might be to go with Wordpress and this is definitely a viable solution; however, there a...
How to create a Video Membership Site

Loading More Content

© 2020 DevDojo LLC. All rights reserved.