1. Go to this page and download the library: Download bociancz/gallery-module 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/ */
// Modules/YourModule/Http/frontendRoutes.php
...
// middleware will be applied to this specific route
$router->get('your-url', 'YourController@method')
->middleware('gallery.render');
...
// middleware will be applied to whole group
$router->group(['middleware' => 'gallery.render'], function(Router $router) {
$router->get('your-url', 'YourController@method');
...
});
...
@foreach($gallery->files as $picture)
<img src="{{ $picture->path_string }}" />
@endforeach
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.