Laravel-Jobs
A Laravel 4 package for adding jobs listings to a website, (*1)
Features
- Jobs index and detail page functionality with search
- Ability to apply for a job and upload a CV
- Jobs can be draft or approved
- Jobs can be permanent or temporary and part time or full time
- Flexible configurable way of having salaries associated with a job
- They have a published date that you can set in the future for delayed/scheduled publishing
- Job slugs are automatically created from the job title
- Control meta description and keywords of job detail pages for SEO purposes
- Uses soft deletes in case you need to retrieve old content
- Configure the rendered views so you can use one in your app rather than the one in the package
- Make use of partials in your own view so you can add extra stuff around the partial
Comes with a
- Migration for creating the fbf_jobs table (N.B. The search function makes use of MySQL Full Text search, so the engine is set to MyISAM)
- Model, controller and views (main view and partials)
- Built in configurable routes
- Faker seed to seed your database with loads of good test data
Installation
Add the following to you composer.json file, (*2)
"fbf/laravel-jobs": "dev-master"
Run, (*3)
composer update
Add the following to app/config/app.php, (*4)
'Fbf\LaravelJobs\LaravelJobsServiceProvider'
Publish the config, (*5)
php artisan config:publish fbf/laravel-jobs
Run the migration, (*6)
php artisan migrate --package="fbf/laravel-jobs"
Optionally copy the administrator config to your administrators model config directory, if you have one, (*7)
Configuration
There are loads of options in the config file, check it out., (*8)
Administrator
You can use the excellent Laravel Administrator package by frozennode to administer your jobs., (*9)
http://administrator.frozennode.com/docs/installation, (*10)
A ready-to-use model config file for the Job model (jobs.php) is provided in the src/config/administrator directory of the package, which you can copy into the app/config/administrator directory (or whatever you set as the model_config_path in the administrator config file)., (*11)
Faker seed
The package comes with a seed that can populate the table with a whole bunch of sample jobs. To run it:, (*12)
php artisan db:seed --class="Fbf\LaravelJobs\JobsTableFakeSeeder"