PHP code example of jumper423 / laravel-columns-search

1. Go to this page and download the library: Download jumper423/laravel-columns-search library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

jumper423 / laravel-columns-search example snippets


class Post{
    use Search;
    
    protected $searchColumns = ['name'];
}

$posts = Post::search()->get();