PHP code example of yezzmedia / laravel-user-content

1. Go to this page and download the library: Download yezzmedia/laravel-user-content 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/ */

    

yezzmedia / laravel-user-content example snippets


use YezzMedia\Content\Models\Page;

$pages = Page::published()->inNavigation()->get();

use YezzMedia\Content\Support\NavigationManager;

$menu = app(NavigationManager::class)->buildMenu($project, 'header');

use YezzMedia\Content\Support\RedirectManager;

$redirect = app(RedirectManager::class)->resolve($project, '/old-page');
bash
php artisan website:install