Page · Mecha CMS

Working with pages.

$page->saveTo()

Author: Taufik Nurrohman · 19 Views

Tweet

Save a page.

->saveTo($path, $consent = 0600);

Example:

Create a new page:

Page::data([
    'title' => 'Page Title',
    'type' => 'HTML',
    'content' => '<p>Page content.</p>'
])->saveTo('path\to\file.page');