PHP code example of julienbourdeau / laravel-ghost-connector

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

    

julienbourdeau / laravel-ghost-connector example snippets


Post::count();
Post::all()->map(function($x) {
    dump($x->title);
});
Post::where('featured', true)->get();