Skip to content

Instantly share code, notes, and snippets.

View nadirabbas's full-sized avatar
🌴

Nadir Abbas nadirabbas

🌴
View GitHub Profile
@nadirabbas
nadirabbas / README.md
Created September 16, 2022 10:43 — forked from mul14/README.md
Simple Laravel Search Trait

Usage

Put SearchTrait.php in app directory. Then use SearchTrait in your model, like so

use App\SearchTrait;
use Illuminate\Database\Eloquent\Model;

class Article extends Model 
{