PHP code example of mlusas / laravel-loom-updates

1. Go to this page and download the library: Download mlusas/laravel-loom-updates 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/ */

    

mlusas / laravel-loom-updates example snippets


return [
    'use_database' => true,
    'scan_directories' => [
        app_path(),
        resource_path(),
    ],
    'file_extensions' => ['php', 'js', 'ts', 'vue'],
];

/**
 * @loom https://www.loom.com/share/your-video-id YYYY-MM-DD author "new Feature"
 */

/**
 * @loom https://www.loom.com/share/1234567890abcdef 2023-09-27 John.Doe "bug"
 */
class ComplexAlgorithm
{
    // ...
}

Route::get('/loom-videos', function () {
    $loomUrls = \mlusas\LaravelLoomUpdates\Models\LoomUrl::all();
    return view('loom-updates::loom-viewer', compact('loomUrls'));
})->name('loom-videos');
bash
php artisan migrate
bash
php artisan vendor:publish --provider="mlusas\LaravelLoomUpdates\LoomUpdatesServiceProvider" --tag="config"
bash
php artisan loom:store
bash
php artisan loom:list
bash
php artisan loom:list --timeframe=week