PHP code example of alizharb / laravel-modular-livewire
1. Go to this page and download the library: Download alizharb/laravel-modular-livewire 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/ */
alizharb / laravel-modular-livewire example snippets
use Modules\Blog\Livewire\Analytics;
use Illuminate\Support\Facades\Route;
Route::livewire('/blog/analytics', Analytics::class);
// Resolves to the single-file or class-based component
Route::livewire('/blog/status', 'blog::status');
// Full-page component via modular alias
Route::livewire('/blog/create', 'blog::pages::post.create');
// Example from Test module
Route::livewire('/blog/create', 'blog::pages::post.create');
bash
php artisan make:livewire Status --module=Blog