PHP code example of waqas-yousaf / dullahan

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

    

waqas-yousaf / dullahan example snippets


  'post_types' => [
      'post' => 'Post',
      'article' => 'Article',
      'news' => 'News',
      'page' => 'Page',
  ]
  
bash
php artisan vendor:publish --tag=dullahan-config
php artisan vendor:publish --tag=dullahan-views
php artisan vendor:publish --tag=dullahan-migrations
bash
php artisan dullahan:install
bash
composer dump-autoload
php artisan package:discover
php artisan list dullahan
blade
<x-dullahan-post-list
    :posts="\WaqasYousaf\Dullahan\Models\Post::query()->with('categories', 'author')"
    category="announcements"
    :paginate="true"
    :per-page="9"
/>