DeveloperBreeze

Laravel Programming Tutorials, Guides & Best Practices

Explore 51+ expertly crafted laravel tutorials, components, and code examples. Stay productive and build faster with proven implementation strategies and design patterns from DeveloperBreeze.

Tutorial
php

Creating a Configurable Pagination System in Laravel

Open any controller where pagination is used. For example:

   namespace App\Http\Controllers;

   use App\Models\Post;

   class PostController extends Controller
   {
       public function index()
       {
           $paginationLimit = getSetting('pagination_limit', 10);

           $posts = Post::paginate($paginationLimit);

           return view('posts.index', compact('posts'));
       }
   }

Nov 16, 2024
Read More
Tutorial
php

Using Laravel Config and Localization Based on Site Settings

Generate and define the SiteSetting model:

   php artisan make:model SiteSetting

Nov 16, 2024
Read More
Tutorial
php

How to Dynamically Manage Application Settings in Laravel

For this tutorial, we will create a settings system to manage:

  • Application Timezone: Configure the app’s timezone dynamically.
  • Notification Preferences: Enable or disable notifications.
  • API Rate Limit: Define the maximum number of API requests allowed per minute.

Nov 16, 2024
Read More