PHP code example of barradev / stockmodule

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

    

barradev / stockmodule example snippets


Route::resource('item', ItemController::class);
Route::post('item/list', [ItemController::class, 'list'])->name('item.list');

Route::resource('stock', StockController::class)->except(['show', 'create']);
Route::get('/{id}/create', [StockController::class, 'create'])->name('stock.create');
Route::post('/list', [StockController::class, 'list'])->name('stock.list');

php artisan stockmodule:publish