Download the PHP package versatilecms/front without Composer
On this page you can find all versions of the php package versatilecms/front. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package front
Versatile Front [WIP]
This Laravel package adds frontend views, routes and assets to a Versatile project.
It comes with a basic structure for frontend layouts (eg. header, footer, etc) and theme assets using the Foundation framework.
Disclaimer (pt_BR)
Este repositório ainda está em desenvolvimento. Contém partes do pacote pvtl/voyager-frontend.
Prerequisites
- PHP >= 7.1.3
- Node & NPM
- Composer
- Laravel Requirements
Installation
1. Install Laravel + Versatile (Replace the $VARs with your own values)
2. Install Versatile Frontend
Any issues? See the troubleshooting section below.
'Got Cron'?
This is a just a reminder to setup the standard Laravel cron on your server. The Versatile Frontend package has a few scheduled tasks, so relies on the cron running.
Thumbnails / Image Resizing
This package comes with an automatic image resize function. When you reference an image in your front-end blade templates, simply call something like:
"CDN" your images
The function will output an absolute URL, where the hostname will be APP_URL
- however you can add a ASSET_URL
variable to your .env
file to use a different hostname.
Search
Generating Indices
This module contains a scheduled job to regenerate indices which will run automatically once you setup jobs for Laravel. If you need to test and re-generate search indices you can manually run the command php artisan versatile-frontend:generate-search-indices
.
Configuring Search (Using Laravel Scout)
By default this module includes "searching" the "Pages" and "Posts" Models out-of-the-box once you have defined the following variable in your .env
file - check out the Laravel Scout documentation:
You can however extend and define your own "Searchable" Models to include in your search results by attaching the "Searchable" trait to them.
Then you'll be able to hook into the search config and merge your "Searchable" Models in with the config key (preferably using a Servie Provider): scout.tntsearch.searchableModels
.
Your configuration file should contain values similar to this modules scout.php configuration:
All versions of front with dependencies
spatie/laravel-sitemap Version ~5.2.0
laravel/scout Version ^5.0
teamtnt/laravel-scout-tntsearch-driver Version ^3.1