PHP code example of zofe / demo-module

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

    

zofe / demo-module example snippets


Schedule::command('db:seed', ['--class' => \App\Modules\Demo\Database\Seeders\DemoSeeder::class, '--force' => true])->hourly();

demo-module/
├─ Livewire/       Home, ArticlesTable, ArticlesView, ArticlesEdit
├─ Views/          home, articles_table, articles_view, articles_edit, menu, frontend_menu, folders
├─ Models/         Article (SSearch), Author
├─ Database/       migrations (demo_articles, demo_authors) and the seeder
├─ config.php      layout, sidebar entry
├─ routes.php
├─ DemoModuleServiceProvider.php   extends RapydModuleServiceProvider, $modulePath = __DIR__
└─ tests/          Testbench + Livewire tests of the three pages