Eloquent compatible model for working with Netflex Pagess.
composer require netflex/pages
<?php
use Netflex\Pages\Page;
$page = Page::find(10000);
$slug = 'top-10-tricks-for-working-with-netflex';
$pageForUrl = Page::resolve($slug);
$firstPage = Page::first();
$lastPage = Page::last();
$newestPage = Page::orderBy('updated', 'desc')->first();
$freshPage = new Page([
'name' => 'Fresh new article',
'author' => 'John Doe',
'content' => '<h1>Hello world!</h1>'
]);
$freshPage->save();
Thank you for considering contributing to the Netflex Structure! Please read the contribution guide.
In order to ensure that the community is welcoming to all, please review and abide by the Code of Conduct.
Netflex Structure is open-sourced software licensed under the MIT license.
Copyright © 2020 Apility AS