Date Filters in Laravel 10

Поділитися
Вставка
  • Опубліковано 21 жов 2024
  • In this tutorial, you'll learn how to build a dynamic date filter for your Laravel application using Bootstrap. We'll start by creating a dropdown menu in the view that allows users to select a date range filter, such as "Today", "Yesterday", "This Week", "Last Week", "This Month", "Last Month", "This Year" and "Last Year".
    Next, we'll write the necessary controller code to handle the selected filter options and retrieve the relevant posts from the database using Laravel's Eloquent query builder. We'll use the Carbon library to manipulate and compare dates in the controller, and pass the filtered posts to the view to display them in a table.
    Source code: github.com/moh...
    #laravel #dateFilters #dateFiltersLaravel

КОМЕНТАРІ • 11

  • @wegazicomputing2872
    @wegazicomputing2872 11 місяців тому

    You solved my problem, thank you.

  • @TrikNgonlen
    @TrikNgonlen Рік тому +3

    would you make a Data Range Filter version, please?

  • @lockhartdcs
    @lockhartdcs 8 місяців тому

    How did you configure your Visual Studio explorer tab to show custom icons like this?

    • @BluebirdTech
      @BluebirdTech  8 місяців тому +1

      It's an extension "Material Icon Theme".

  • @cloudcodesolutions
    @cloudcodesolutions Рік тому +1

    Thanks Bro

  • @laravelearner
    @laravelearner Рік тому

    Thank You :)

  • @ronakfiza9732
    @ronakfiza9732 Рік тому +1

    How to fetch dynamically financial year wise data like 1april2022 to31st March 2023 to show in graph
    Can you give me query please solve my problem

    • @BluebirdTech
      @BluebirdTech  Рік тому

      $users = User::whereDate('created_at','>=',$start_date)
      ->whereDate('created_at','

  • @linnhtetaung5923
    @linnhtetaung5923 Рік тому +1

    bro github link please