Answers for "Laravel Eloquent Queries SEARCh and GET DATA"

PHP
3

laravel eloquent search query 2020

$result = Marriage::where('name','LIKE','%'.$email_or_name.'%')
                ->orWhere('email','LIKE','%'.$email_or_name.'%')
                ->get();
Posted by: Guest on August-31-2020
0

laravel find query

<?php

$flights = App\Models\Flight::all();

foreach ($flights as $flight) {
    echo $flight->name;
}
Posted by: Guest on October-08-2020

Code answers related to "Laravel Eloquent Queries SEARCh and GET DATA"

Browse Popular Code Answers by Language