PHP code example of wbe / searchland

1. Go to this page and download the library: Download wbe/searchland 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/ */

    

wbe / searchland example snippets


 'providers' => [
        Wbe\Searchland\SearchlandServiceProvider::class,

php artisan vendor:publish --provider="Wbe\Searchland\SearchlandServiceProvider"

@

   "news"=>[
        "columns"=>["title",
            "description",
            "alias"
        ],
        "join"=>["news_description"=>[
            "news_description.content_id",
            "news.id"
        ]
        ],
        "link"=>[
            "url_add"=>"/news/",
            "column"=>"alias"
        ]
    ],

"table_name"=>[
    "columns"=>["first_column","second_column","thread_column","link_column"],
    "join"=>["table_what_need_to_join"=>["what","to_what"]], - if needed
    "link"=>["url_add"=>"if need echo on start link","column"=>"what_column_is_link"]