PHP code example of webx-ui / module-vacancies

1. Go to this page and download the library: Download webx-ui/module-vacancies 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/ */

    

webx-ui / module-vacancies example snippets


// config/webx-vacancies.php
'prefix' => env('WEBX_VACANCIES_PREFIX', 'careers'),   // never empty
'index' => (bool) env('WEBX_VACANCIES_INDEX', true),
'country' => env('WEBX_VACANCIES_COUNTRY'),            // ISO alpha-2 of a new vacancy: 'UA'
'currencies' => ['USD' => '$', 'EUR' => '€', 'UAH' => '₴', 'PLN' => 'zł'],
'views' => ['index' => 'vacancies.index', 'vacancy' => 'vacancies.vacancy'],
'layout' => env('WEBX_VACANCIES_LAYOUT'),
'breadcrumbs' => (bool) env('WEBX_VACANCIES_BREADCRUMBS', true),
'middleware' => ['web', 'webx.locale'],
bash
php artisan webx:routes:rebuild --type=vacancy
bash
php artisan vendor:publish --tag=webx-vacancies-views