Join 37,052 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

Building a Laravel Blade Table Component With Alpine.js

Building a Laravel Blade Table Component With Alpine.js

If youโ€™re building an admin panel, chances are that you will need to display the data in some tabular format. Writing every time table, tr, td is a little bit cumbersome, when we need our work to be done quickly. Table UIs are very common in web development to organize complex data. In this blog post, weโ€™ll see how we can buil...

Mithicher Baro

2 weeks ago

6
Select One:
Create a MeiliSearch Laravel Blade Component

Create a MeiliSearch Laravel Blade Component

What is MeiliSearch? As stated in their official website - MeiliSearch is an open source, blazingly fast and hyper relevant search-engine that will improve your search experience. Laravel also supports MeiliSearch out of the box. Feel free to visit the documentation to know more about it: https://laravel.com/docs/8.x/scout#meili...

Mithicher Baro

3 weeks ago

5
Select One:
Laravel Scopes

Laravel Scopes

Laravel scopes can come in really handy when you need to query data multiple times. It will also make your queries easier to read and manage. If you are unfamiliar with Laravel Scopes. This is the tutorial for you ๐Ÿ˜‰. What are scopes There are two types of scopes in Laravel (Global and Local). In order to keep this simple, I am o...

Tony Lea

1 month ago

5
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:
How to optimize MySQL to speed up your Laravel application with Releem?

How to optimize MySQL to speed up your Laravel application with Releem?

Introduction Optimizing your MySQL service is a great way to improve your Laravel application's overall performance. Of course, it is important to follow Laravel Eloquent's best performance practices as described in Jonathan Reinink's course on Laravel Eloquent performance patterns. But you should also not forget the server-side...

Bobby Iliev

1 month ago

8
Select One:
Laravel Tailwind Boilerplate and Vue ready

Laravel Tailwind Boilerplate and Vue ready

Happy Friday!! This week I was working with a simple GitHub repo to save me time when I start new Laravel projects. The repo it's called Laravel Tailwind Boilerplate & Vue ready It consist in a Initial template to start your Laravel projects from scratch. It's very simple! There are not any extra functionality, no auth, no A...

Marc Garcia

2 months ago

4
Select One:
[Package] Laravel Currency Formatter

[Package] Laravel Currency Formatter

Hello there! Marc here again. I've just released a new Laravel package, this time it's about currencies. Almost in every project we have to format money in one or more formats, and personally, I've never remember how format with number format and round functions ๐Ÿ˜… Easy and tiny package for all of you guys, enjoy it. And always,...

Marc Garcia

2 months ago

4
Select One:
Laravel Backups with Cloudways

Laravel Backups with Cloudways

Making sure that you have back-ups of your application will help you sleep better at night ๐Ÿ˜ด. Backups will also help you in case you get hacked or something accidentally gets deleted ๐Ÿšฎ. Luckily, using Cloudways hosting solution for your Laravel application makes this extremely easy. In this tutorial I will show you how easy it i...

Dev Dojo

2 months ago

3
Select One:
Simpler Url Shortener for Laravel

Simpler Url Shortener for Laravel

Hello! Marc here. I've just released a new laravel package. It's very simple, but hope it will help you in some projects. Thank you! All PRs and suggestions will be welcome! https://github.com/magarrent/laravel-url-shortener Laravel Url Shortener Install composer require magarrent/laravel-url-shortener Usage Import the UrlSho...

Marc Garcia

2 months ago

9
Select One:
Laravel & Deployer on Cloudways

Laravel & Deployer on Cloudways

Deploying your application is a super important part of growing your application. If it is easy to deploy, you will most likely push code more often and get things done quicker. So, in this tutorial, I'm going to show you how you can deploy your Laravel app on Cloudways using Deployer. Deployer is an amazing deployment tool for...

Tony Lea

2 months ago

6
Select One:
How to use BuyMeACoffees webhooks with Laravel.

How to use BuyMeACoffees webhooks with Laravel.

In this post, I will demonstrate how to use BuyMeACoffees Webhooks in Laravel. BMCs Webhooks allows you to get near-instant notifications when an event happens on your account, as said by BMC themselves. When the event occursโ€”a supporter buys coffee for you, or someone purchases your coffeelink, etc.โ€”BMC creates an Event object...

Kim Hallberg

2 months ago

6
Select One:
Send Laravel notification email to non-registered user

Send Laravel notification email to non-registered user

Hey there. Today I'm gonna show you how to send email notifications to any user email. Normally, when you send email notifications in laravel, use the function notify, included in the main User model, like this: <?php $user->notify(new FormContact($form)); So, how can we send an email notification if we don't have the us...

Marc Garcia

2 months ago

6
Select One:
Easily compile Wave assets scripts

Easily compile Wave assets scripts

Hello, Marc here! I'm going to expose two scripts that helps me a lot to compile Wave and other assets for dev and production environments. In a Wave project, you need to compile theme assets individually from project assets (Like Vue.js components, Sass...) This scripts will compile for you all your project and theme assets. So...

Marc Garcia

2 months ago

1
Select One:
Laravel Livewire Trix Editor Component

Laravel Livewire Trix Editor Component

In this tutorial I'm going to show you how to create a Trix Editor Component in Laravel Livewire. Trix Editor is an amazing rich text editor for adding beautifully formatted text to your application. Livewire is an amazing framework that makes building responsive applications fun! Combining these two technologies, we can create...

Tony Lea

2 months ago

7
Select One:
Laravel Scheduler on Cloudways

Laravel Scheduler on Cloudways

The Laravel Scheduler allows you to schedule specific functionality to run at a particular time on your server. Check out the Laravel Scheduler if you are not familiar with it. To implement this functionality in your application, you will need to set up a Cron Job to run in the background. In this tutorial, I will show you how e...

Dev Dojo

2 months ago

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

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

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

4 months ago

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

4 months ago

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

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

4 months ago

4
Select One:

Loading More Content