PHP code example of do1emu / module-news

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

    

do1emu / module-news example snippets


intranet-module-news/
├── composer.json                     # Paketname + Auto-Discovery des Providers
├── src/
│   ├── NewsServiceProvider.php       # Manifest (Name, Icon, Unterseiten)
│   ├── Http/Controllers/NewsController.php
│   └── Models/NewsPost.php
├── routes/web.php                    # Routen: module.news.*
├── resources/views/                  # Views: news::index, news::create
└── database/migrations/              # eigene Tabelle news_posts
bash
composer modules:sync
php artisan migrate