Laravel

Laravel posts, videos, courses, and more

Bobby Iliev

6 days ago

View Post

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...
How to fix 'Please provide a valid cache path' error in Laravel?
3
Select One:

Bobby Iliev

1 week ago

View Post

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...
How to Define Custom ENV Variables in Laravel?
8
Select One:

Bobby Iliev

2 weeks ago

View Post

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...
Use Composer like a Pro - the Dependency Manager for PHP
11
Select One:

Bobby Iliev

4 weeks ago

View Post

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...
10 SaaS Startups Ideas to Build in 2021
11
Select One:

Bobby Iliev

1 month ago

View Post

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...
What are signed routes in Laravel and how to use them?
9
Select One:

Tony Lea

1 month ago

View Post

Livewire Components in a Different Directory

When creating a new Livewire component they will be placed in the same directory. But, there may be some instances where you want to place those Component Controllers and views in a separate location. In this short tutorial I will show you how to do that. Creating a Livewire Component To create a new livewire component (after cr...
Livewire Components in a Different Directory
8
Select One:

Bobby Iliev

1 month ago

View Post

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...
How to Create Response Macros in Laravel?
8
Select One:

Tony Lea

1 month ago

View Episode

Laravel Sail 101

In this video, I'm going to show you how to use Laravel Sail https://laravel.com/docs/sail​. Sail is a Docker development environment built specifically for Laravel 🤙You can check out the official documentation here https://laravel.com/docs/sail​, or you can check out an article about Laravel Sail here https://devdojo.com/b...
Laravel Sail 101
2
Select One:

Bobby Iliev

1 month ago

View Post

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...
Custom Namespaces to Organize Your Controllers
5
Select One:

Bobby Iliev

1 month ago

View Post

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...
The 10 Most Popular PHP Frameworks and Their Creators
5
Select One:

Bobby Iliev

1 month ago

View Post

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...
How to Rollback Database Migrations in Laravel?
4
Select One:

Tony Lea

1 month ago

View Post

Using Ace Editor with Livewire

Using the Ace Editor, we can easily add a code editor inside of any application built with Laravel and Livewire. Here is a quick example of what we'll be creating in this tutorial. Let's start off from the very beginning and create a new Laravel Livewire application. Install a new Livewire app First we'll need to create a new l...
Using Ace Editor with Livewire
3
Select One:

Bobby Iliev

2 months 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?
6
Select One:

Tony Lea

2 months 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
5
Select One:

Bobby Iliev

2 months 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?
7
Select One:

Bobby Iliev

3 months 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 months 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
9
Select One:

Bobby Iliev

3 months 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 months 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 months 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

3 months 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

3 months 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

4 months 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

4 months 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

4 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

4 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

4 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

5 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

5 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

5 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:

Loading More Content

Back to DevDojo