PHP code example of reinink / remember-query-strings
1. Go to this page and download the library: Download reinink/remember-query-strings 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/ */
reinink / remember-query-strings example snippets
protected $routeMiddleware = [
// ..
'remember' => \Reinink\RememberQueryStrings::class,
];
Route::get('users')->name('users')->uses('UsersController@index')->middleware('remember');
class UserController extends Controller
{
public function __construct()
{
$this->middleware('remember')->only('index');
}
}