PHP code example of wangta69 / laravel-meta
1. Go to this page and download the library: Download wangta69/laravel-meta 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/ */
wangta69 / laravel-meta example snippets
use Pondol\Meta\Facades\Meta;
..........
class ViewerController extends Controller
{
..........
public function store(Request $request) {
..........
$meta = Meta::get()
->title($request->q)
->description($request->q.'에 대한 검색결과');
return view('view-blade', ['meta'=>$meta]);
}
..........
}
$meta = Meta::get()->create_image(function($image){
$image->create();
});
$meta = Meta::get()->create_image(function($image){
$image->save_path = '';
$image->background_image = '';
$image->font = '';
$image->fontSize = '';
$image->create();
});