PHP code example of zhonght / laravel-admin-watermark
1. Go to this page and download the library: Download zhonght/laravel-admin-watermark 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/ */
zhonght / laravel-admin-watermark example snippets
return [
'enable' => env('ADMIN_WATERMARK_ENABLE', true),
'text' => env('ADMIN_WATERMARK_TEXT', ''), // 附加文字,如系统名称
'opacity' => 0.1,
'canvas_width' => 400,
'canvas_height' => 300,
'font_size' => 18,
'rotate' => -0.3,
];
bash
php artisan vendor:publish --tag=admin-watermark-config