1. Go to this page and download the library: Download serfix/content-ai-laravel 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/ */
serfix / content-ai-laravel example snippets
use Serfix\ContentAi\Models\Article;
$articles = Article::published()->latest('published_at')->paginate();
use Serfix\ContentAi\Rendering\Renderer;
public function show(string $slug)
{
$article = \Serfix\ContentAi\Models\Article::where('slug', $slug)->firstOrFail();
app(Renderer::class)->use($article);
return view('my-own-blog-page'); // your view, your design
}