Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

laravel check if value in enum

Jittery Jay answered on February 23, 2023 Popularity 5/10 Helpfulness 2/10

Contents


More Related Answers

  • laravel migration check if table has column
  • if number in array return true laravel 10
  • laravel check if column exists
  • laravel validate enum field
  • Detect if a numbers contains any string in laravel
  • laravel validation php enum
  • how to check value is integeret or not in laravel
  • laravel enum validation
  • laravel enum validation
  • Check if string is an enum value
  • check if column has value in laravel eloquent
  • laravel excel check if column exists
  • laravel validate enum
  • laravel eloquent where if a variable has value
  • laravel row exists or null
  • how to check if a value is in array in laravel

  • laravel check if value in enum

    0

    use Illuminate\Validation\Rules\Enum;

    $request->validate([

    'status' => [new Enum(ServerStatus::class)],

    ]); 

    Popularity 5/10 Helpfulness 2/10 Language php
    Source: Grepper
    Tags: laravel php
    Link to this answer
    Share Copy Link
    Contributed on Feb 23 2023
    Jittery Jay
    0 Answers  Avg Quality 2/10


    X

    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    X
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.