Laravel

Laravel posts, videos, courses, and more

Bobby Iliev

2 days ago

View Post

How to get the Laravel Query Builder to Output the Raw SQL Query?

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. When troubleshooting problems with the Laravel query builder, you might want to see the actual SQL query that...
How to get the Laravel Query Builder to Output the Raw SQL Query?
3
Select One:

Tony Lea

2 days ago

View Post

Converting Markdown to HTML in Laravel

In the latest version of Laravel, converting your markdown into HTML couldn't be easier. All you need to do is reach for the handy Str helper method and you can accomplish this in one line. Converting Markdown to HTML You can simply run the new Str::markdown() helper to convert markdown text into clean HTML, like so: {!! Str::ma...
Converting Markdown to HTML in Laravel
2
Select One:

Bobby Iliev

5 days ago

View Post

How to Quickly Change the Password for a User in Laravel?

Introduction In some cases, you might want to reset the password for your Laravel user quickly. Another reason might be that you could be having problems with your emails, and the reset password email is not being delivered. However, unlike WordPress, for example, where you could simply use MD5 to encrypt your password and updat...
How to Quickly Change the Password for a User in Laravel?
4
Select One:

Bobby Iliev

2 weeks ago

View Post

How to build a blog with Laravel and Wink?

Introduction In 2021 with great blogging platforms like the Developer Blog, you can save yourself the hassle of building your own blog from scratch. However, if you are planning to build a Laravel blog by yourself, you don't have to start from scratch! There is a Laravel great package called Wink developed by Mohamed Said which...
How to build a blog with Laravel and Wink?
3
Select One:

Tina Hammar

3 weeks ago

View Post

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...
Generate random color gradient background
8
Select One:

Bobby Iliev

3 weeks ago

View Post

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...
How to create an eBook from Markdown using Ibis?
7
Select One:

Tina Hammar

3 weeks ago

View Post

Mixing Image and Map coordinates

I use Leafletjs for both, map (OSM) and image based positioning. I also need to store both types of coordinates in the same database columns. This article is not about how to use Leafletjs, it's about the problems that arise when you have to support both geographical coordinates as well as image based coordinates and how to diff...
Mixing Image and Map coordinates
5
Select One:

Tina Hammar

3 weeks ago

View Post

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...
Dabbling with JSON, Object and Array conversions
3
Select One:

Bobby Iliev

1 month ago

View Post

How to Build a Simple Reviews and Rating System with Livewire and Jetstream?

Introduction Laravel Livewire, created by Caleb Porzio, is a full-stack framework that allows you to add reactivity to your Laravel applications. If you are just getting started with Laravel Livewire, make sure to check out this introduction to Livewire tutorial. Laravel Jetstream is a new application scaffolding for Laravel. La...
How to Build a Simple Reviews and Rating System with Livewire and Jetstream?
13
Select One:

Bobby Iliev

1 month ago

View Post

What is Laravel Enlightn and how to use it?

Introduction The Laravel Enlightn was developed by Miguel Piedrafita and Paras Malhotra . It is an artisan command-line tool that checks your code and provides you with actionable recommendations on improving your application's performance, security & more. The Laravel Enlightn comes with a free community version, which incl...
What is Laravel Enlightn and how to use it?
15
Select One:

Bobby Iliev

1 month ago

View Post

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...
What is the $this keyword and how to use it in PHP
12
Select One:

Bobby Iliev

1 month ago

View Post

How to consume an external API with Laravel and Guzzle

Introduction Laravel provides a wrapper for the Guzzle HTTP client. It allows you to quickly make HTTP requests to communicate with external APIs. In this tutorial, you will learn how to use the Laravel HTTP Client, and consume an external API and store the data in a database. Prerequisite Before you start, you would need to hav...
How to consume an external API with Laravel and Guzzle
9
Select One:

Bobby Iliev

2 months ago

View Post

How to Add a New Column to an Existing Table in a Laravel Migration?

Introduction The Laravel Migrations allow you to manage your database structure by creating new tables and columns. The Laravel migrations are like version control for your database. In this tutorial, you will learn how to add a new column to an existing table in a Laravel Migration! Prerequisites Before you start, you would nee...
How to Add a New Column to an Existing Table in a Laravel Migration?
9
Select One:

Bobby Iliev

2 months ago

View Post

How to Get the Last Inserted Id 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. In this tutorial, you will learn how to get the Last Inserted Id Using Laravel Eloquent! Prerequisites Before...
How to Get the Last Inserted Id Using Laravel Eloquent?
11
Select One:

Bobby Iliev

2 months ago

View Post

How to Add Multiple Where Clauses 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. In this tutorial, you will learn how to add multiple where clauses using Laravel Eloquent! Prerequisites Befor...
How to Add Multiple Where Clauses Using Laravel Eloquent?
14
Select One:

Bobby Iliev

2 months ago

View Post

What is Laravel Sail and how to get started?

Introduction Laravel is a fantastic open-source PHP framework that is designed to develop web applications following the model-view-controller scheme. And now here comes Laravel Sail. Laravel Sail was just recently released, and it is a light-weight command-line interface for interacting with Laravel's default Docker development...
What is Laravel Sail and how to get started?
11
Select One:

Bobby Iliev

2 months ago

View Post

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...
Why you should become a web developer
11
Select One:

Bobby Iliev

2 months ago

View Post

How to check “if not null” 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. In this tutorial, you will learn how to check if the value of a specific column is NULL or not with Laravel El...
How to check “if not null” with Laravel Eloquent?
10
Select One:

Bobby Iliev

2 months ago

View Post

How to check if a record exists 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. In this tutorial, you will learn how to check if a record exists with Laravel Eloquent! Prerequisites Before y...
How to check if a record exists with Laravel Eloquent?
9
Select One:

Kim Hallberg

3 months ago

View Post

Laravel Quickie: How to install and build TailwindCSS v2 with Laravel Mix 😎

Introduction Welcome to another Laravel Quickie! In this quickie, we will go over how to install and build TailwindCSS v2 with the help of Laravel Mix. If you've already tried and have run into issues, hopefully, this post will solve those issues for you. Prerequisites If you don't already have a Laravel project up and running....
Laravel Quickie: How to install and build TailwindCSS v2 with Laravel Mix 😎
5
Select One:

Tony Lea

3 months ago

View Post

Create a Blog in Laravel and Livewire

In this tutorial, we are going to walk-through creating a simple blog in Laravel and Livewire. It will be pretty simple and can be used as a starting point for building your blog with these awesome frameworks. To kick things off, we'll start by creating our new laravel application. Create a new Laravel app First, we'll create a...
Create a Blog in Laravel and Livewire
5
Select One:

Kim Hallberg

3 months ago

View Post

Laravel Quickie: Basic Controllers

Introduction Welcome to Laravel Quickie! In this section, we will go over the two basic controllers used in Laravel. The regular controller and the single-action controller. Prerequisites If you don't already have a Laravel project up and running. I'd suggest using a DigitalOcean Ubuntu Droplet. Use my affiliate code to get free...
Laravel Quickie: Basic Controllers
3
Select One:

Bobby Iliev

3 months ago

View Post

How To Display HTML Tags In Blade With Laravel 8

Introduction Laravel is a great PHP framework that allows you to use Blade Templates for your frontend. Blade is a very powerful templating engine provided with Laravel that does not restrict users from using plain PHP code in their views. Blade view files that use the .blade.php file extension and are typically stored in the re...
How To Display HTML Tags In Blade With Laravel 8
7
Select One:

Kim Hallberg

3 months ago

View Post

How to create a Contact Us form with Livewire. 👋

Introduction. The contact form, an essential piece of functionality on every website. From a single input field asking for an email address. To full-page forms with address fields. Used to acquire potential clients and create new leads, or get subscribers to an email list. The contact form contains a multitude of combinations. I...
How to create a Contact Us form with Livewire. 👋
6
Select One:

Bobby Iliev

3 months ago

View Post

How to remove a package from Laravel using composer?

Introduction Every PHP developer should be familiar with how to use frameworks. Frameworks help make the process of development easier by simplifying common practices used in developing major web projects such as packages, modules, plug-ins, and even components. Adding a package or packages is the primary way of adding functiona...
How to remove a package from Laravel using composer?
8
Select One:

Bobby Iliev

3 months ago

View Post

What is Laravel Breeze and how to get started?

Introduction Laravel 8 was released on September 8th along with Laravel Jetstream. If you are not familiar with Jetstream, you should check out this introduction tutorial here: What is Laravel Jetstream and how to get started Due to a lot of Laravel community members complaining about the overall complexity that Jetstream adds,...
What is Laravel Breeze and how to get started?
7
Select One:

Bobby Iliev

3 months ago

View Post

How to Get Current Route Name in Laravel?

Introduction Laravel routes allow you to map your URLs to specific functionality, for example, a method in a controller or directly to a specific Blade view. For example, if you visit yourdomain.com/contact, Laravel will return the contact page of your website. In this tutorial, you will learn how to get your current route name...
How to Get Current Route Name in Laravel?
7
Select One:

Bobby Iliev

3 months ago

View Post

How to encrypt and decrypt a string in Laravel?

Introduction Encryption is the process of encoding information so that it can not be understood or intercepted. Encryption has been used long ago before computers were invented; actually, the first known evidence dates back to 1900 BC in Egypt. Another very popular encryption technique is the Caesar cipher. It is one of the simp...
How to encrypt and decrypt a string in Laravel?
6
Select One:

Tony Lea

3 months ago

View Post

Laravel Authentication vs Authorization

Laravel provides some really great features out of the box. Authentication and Authorization are just a few of them. If you are fairly new to application development and/or Laravel, these two features might get confusing to distinguish them apart. In this quick article, you will learn the basic difference between the two. First,...
Laravel Authentication vs Authorization
5
Select One:

Bobby Iliev

3 months ago

View Post

How to send Discord notifications with Laravel?

Introduction Discord is a messaging platform, and its popularity has been growing exponentially! It is a great alternative to Slack. Webhooks is one of the awesome features of Discord that allows you to send any messages to a specific channel on your Discord server with just a simple POST request. In this tutorial, you will lear...
How to send Discord notifications with Laravel?
9
Select One:

Loading More Content

Back to DevDojo