creode / laravel-nova-careers
Exposes functionality within the Laravel Careers module to Laravel Nova.
Fund package maintenance!
Creode
Requires
- php: ^8.1
- creode/laravel-careers: ^1.2
- creode/nova-page-builder: ^1.3
- creode/nova-publishable: ^1.0
- laravel/nova: ^4.0
- spatie/laravel-package-tools: ^1.14.0
Requires (Dev)
- laravel/pint: ^1.0
- nunomaduro/collision: ^7.8
- orchestra/canvas: *
- orchestra/testbench: ^8.8
- pestphp/pest: ^2.20
- pestphp/pest-plugin-arch: ^2.0
- pestphp/pest-plugin-laravel: ^2.0
README
Exposes functionality within the Laravel Careers module to Laravel Nova.
Installation
You can install the package via composer:
composer require creode/laravel-nova-careers
Setup Page Builder Model
The default Career model has to be replaced to utilise some of the new page builder features, so ensure that you use the new model by editing the existing careers config:
// config/careers.php return [ ... 'model' => Creode\LaravelNovaCareers\Models\NovaCareer::class, ... ];
Publishing Config
You can publish the config file with:
php artisan vendor:publish --tag="nova-careers-config"
This is the contents of the published config file:
// config for Creode/LaravelNovaCareers return [ /* |-------------------------------------------------------------------------- | Job Types |-------------------------------------------------------------------------- | | Job types that can be selected with each job posting. | */ 'job_types' => [ 'Full Time' => 'Full Time', 'Part Time' => 'Part Time', 'Contract' => 'Contract', 'Freelance' => 'Freelance', 'Internship' => 'Internship', 'Temporary' => 'Temporary', 'Volunteer' => 'Volunteer', 'Apprenticeship' => 'Apprenticeship', ], /* |-------------------------------------------------------------------------- | Application Email |-------------------------------------------------------------------------- | | This value is the email address that careers applications will be sent | to. | */ 'application_email' => env('CAREERS_EMAIL', ''), ];
Publishing Views
You can publish the views this module utilises with:
php artisan vendor:publish --tag="nova-careers-views"
Registering Vacancies Page Block
This module supports the ability to expose a new optional page block within your site. This can be used in line with the creode/nova-page-builder
module.
The block will display a list of vacancies that are currently active. To register the block add the following service provider to your config/app.php
file:
// config/app.php 'providers' => [ .... Creode\LaravelNovaCareers\Providers\CareersPageBlockProvider::class, ... ];
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.