New Array To Enum Collection Casting - 7 New Things Added - New in Laravel 9.49.0

Поделиться
HTML-код
  • Опубликовано: 13 июл 2024
  • Here, we will be looking at 7 new things that are added to the latest version of Laravel which is v9.49.0
    === Important Links ===
    Fonts, extensions I use, and Support Laratips links:
    bit.ly/m/laratips
    === Offer ===
    GET ONE MONTH OF FREE CLOUDWAYS HOSTING
    Get up to Free Hosting by using code "LARATIPS" and you get $15 as credit which can last almost a month using this link: bit.ly/3TAm5Ee
    Cloudways offers peace of mind and flexibility so you can focus on growing your business and reaching new milestones instead of dealing with server management. With Cloudways, you get an optimized stack, managed servers, backups, staging environment, integrated Git, pre-configured, Composer, 24/7 support, and the choice of five cloud providers: AWS, DigitalOcean, Linode, Google Cloud, and Vultr
    === Support ===
    If you want me to continue making this kind of video for free on RUclips, then you can support the channel
    eSewa ID: 9843632084
    Wise Link: bit.ly/3dnBRmX
    Wise email: ashish.dhamala2015@gmail.com
    === Video Related Links ===
    github.com/laravel/framework/...
    00:00 Intro
    00:12 Add support for casting arrays containing enums
    github.com/laravel/framework/...
    02:27 CLI Prompts
    github.com/laravel/framework/...
    03:47 Adds assertJsonIsArray and assertJsonIsObject for TestResponse
    github.com/laravel/framework/...
    05:32 Add forceDeleteQuietly to SoftDeletes
    github.com/laravel/framework/...
    05:49 Add Arr::sortDesc()
    github.com/laravel/framework/...
    06:00 Add new throw helper methods to the HTTP Client
    github.com/laravel/framework/...
    06:26 Add noActionOnDelete method
    github.com/laravel/framework/...
    === Other Videos ===
    What's New In Laravel 9
    • Laravel 9 Is Released ...
    New In Laravel Playlist
    • New In Laravel
    Laravel Package Development Playlist
    • Laravel Package Develo...
    Password Validation In Laravel with at least one Letters, Numbers, Upper and Lowercase or Symbols:
    • Password Validation In...
    Multiple Apis With ForwardsCalls Trait And Code Refactoring Tip - Laravel Hidden Feature:
    • Multiple Apis With For...
    Laravel Chunking - You Might Be Doing This Wrong - Problem and Solution:
    • Laravel Chunking - You...
    Laravel Tip - Properly Get Data Between Two Dates
    • Laravel Tip - Properly...
    Get Data From Multiple Databases In One Project | Laravel Tip
    • Get Data From Multiple...
    === Attribution ===
    Boy waving hand Video by VideoPlasty .com from Pixabay
    pixabay.com/users/videoplasty...
    #laravel #php #laraveltip #laratips #newinlaravel

Комментарии • 7

  • @AMoktar
    @AMoktar Год назад

    Thanks bro ❤

  • @binaryfire
    @binaryfire Год назад

    Nice. Would love to see a full video on using enum array casting to set up roles and permissions (without a package)

    • @Laratips
      @Laratips  Год назад

      In real world scenario I would use models instead of enums for roles and permissions.

    • @binaryfire
      @binaryfire Год назад

      @@Laratips I’ve got a multi-db multi tenant app where the list of permissions are the same for all tenants. What I’m hoping to do is use enums for the permissions and have a JSON column in the users table containing all that user’s permissions. Is that a good approach? Storing the permissions in a table seems like unnecessary overhead because they are fixed

    • @Laratips
      @Laratips  Год назад +1

      If they are fixed then you can use json.

  • @dmxd
    @dmxd Год назад

    What code editor are you using in this video?

    • @Laratips
      @Laratips  Год назад

      I am using VsCode and Tinkerwell