PHP code example of baytek / laravel-content

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

    

baytek / laravel-content example snippets


"baytek/laravel-content": "dev-master"

protected $data = [
    [
        'key' => '', // Key of content
        'title' => '', // The title of the content
        'content' => '', // The actual content
        // Key value pairs
        'meta' => [
            'sample-key' => 'sample-value',
        ],
        // Arrays with content keys containing two values per array
        'relations' => [
            ['sample-key', 'sample-key-type'],
        ]
    ],
];