PHP code example of hexters / laramodule

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

    

hexters / laramodule example snippets


module_path('Blog');

module_path('Blog', 'target/path');

module_path_lists();

module_name_lists();

module_enable('Blog')

module_disable('Blog')

module_status('Blog')

module_group_status()

module_details('Blog')

module_active('Blog')


use Hexters\Laramodule\Events\ModuleDisabled;
use Hexters\Laramodule\Events\ModuleEnabled;

/**
 * The event listener mappings for the application.
 *
 * @var array
 */
protected $listen = [
    ModuleDisabled::class => [
        // ...
    ],
 
    ModuleEnabled::class => [
        // ...
    ],
];
bash
composer dump-autoload
bash
php artisan module:make Blog
bash
php artisan module:make Blog
js
/** @type {import('tailwindcss').Config} */
module.exports = {
  content: [

    . . .

    "./Modules/**/Resources/**/*.{blade.php,js,vue}",
    "./resources/**/*.{blade.php,js}",

    . . .

  ],
  
  . . .