Join 30,338 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

Laravel

Laravel posts, videos, courses, and more

Launching a Laravel app via Cloudways API

Launching a Laravel app via Cloudways API

In this tutorial I'm going to show you how easy it is to launch a Laravel application on a Cloudways server, via their API. We are going to launch the Laravel application via an API inside of a Laravel application, so it will be kind of a Laravel inception 😁 Ok, let's jump into it and deploy a new server and Laravel app via the...

Tony Lea

1 week ago

7
Select One:
Laravel Hosting using Cloudways

Laravel Hosting using Cloudways

Laravel has quickly become one of the most prominent web development frameworks of all time. That means there are a lot of new apps built every day. It also means that there are a lot of people in need of hosting Laravel applications. We recently teamed up with Cloudways, an excellent hosting solution for Laravel, WordPress, PHP...

Dev Dojo

3 weeks ago

7
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

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

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

1 month 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

1 month 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

1 month ago

8
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

1 month ago

9
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

1 month ago

9
Select One:
Laravel Real-Time Facades

Laravel Real-Time Facades

Real-time Facades have been available since version 5 of Laravel; however, I haven't used them much until now. Since I'm just discovering how these work, I thought it would be helpful to do a quick write-up for you 😉. What Are Facades Before understanding Real-time Facades, it would be helpful to have a basic knowledge of Facade...

Tony Lea

1 month ago

4
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

2 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

2 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

3 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

3 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

3 months ago

11
Select One:
Livewire Components in a Different Directory

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

Tony Lea

3 months ago

8
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

3 months ago

10
Select One:
Laravel Sail 101

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

Tony Lea

3 months ago

3
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

3 months ago

7
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

4 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

4 months ago

7
Select One:
Using Ace Editor with Livewire

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

Tony Lea

4 months ago

3
Select One:
How to get the Laravel Query Builder to Output the Raw SQL Query?

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

Bobby Iliev

4 months ago

8
Select One:
Converting Markdown to HTML in Laravel

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

Tony Lea

4 months ago

5
Select One:
How to Quickly Change the Password for a User in Laravel?

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

Bobby Iliev

5 months ago

9
Select One:
How to build a blog with Laravel and Wink?

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

Bobby Iliev

5 months ago

4
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

5 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

5 months ago

8
Select One:
Mixing Image and Map coordinates

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

Tina Hammar

5 months ago

5
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

5 months ago

3
Select One:

Loading More Content