Wallogit.com
2017 © Pedro Peláez
Quick, drop-in privacy policy
via composer:, (*1)
``` bash composer require rtmatt/privacy-policy, (*2)
Add to configuration file (above route service provider) ``` php RTMatt\PrivacyPolicy\Providers\PrivacyPolicyServiceProvider::class
``` bash php artisan vendor:publish --provider="RTMatt\PrivacyPolicy\Providers\PrivacyPolicyServiceProvider" --tag="config", (*3)
## Modal Usage Include the modal and the link in the appropriate layout file (jQuery required, bootstrap will be included if it's not already) ``` blade //Put this wherever it should show in the layout @include('rtprivacypolicy::link') //... //Include this near the closing body tag @include('rtprivacypolicy::modal')
If you want the modal to not look like a pile of shit (read:work stylisitically) you will need to include bootstraps modal css somewhere and somehow., (*4)
Make a file in, (*5)
/resources/views/vendor/rtprivacypolicy/privacy-policy.blade.php
php
'business_name' => '[ENTER BUSINESS NAME HERE]', //business name for display in PP
'contact_email' => '[ENTER CONTACT EMAIL ADDRESS HERE]', //contact email for display in PP
'contact_phone' => '[ENTER PHONE NUMBER HERE]', // contact phone for display in PP
'site_url' => url('/'), //site url for display in PP
'master_layout' => 'rtprivacypolicy::blank', //Layout for the PP content to extend (when register route active)
'section_name' => 'content', // section name within master page for PP content
'register_route' => false, //resister route for PP to display on own page
'link_text' => 'Terms & Privacy' // the text to display in the modal link when included as a modal, (*6)