for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php namespace Anomaly\Streams\Platform\Ui\Table\Command;
use Anomaly\Streams\Platform\Ui\Table\TableBuilder;
use Illuminate\Contracts\Bus\SelfHandling;
use Illuminate\Http\Request;
use Illuminate\Session\Store;
/**
* Class SaveTableState
*
* @link http://pyrocms.com/
* @author PyroCMS, Inc. <[email protected]>
* @author Ryan Thompson <[email protected]>
* @package Anomaly\Streams\Platform\Ui\Table\Command
*/
class SaveTableState implements SelfHandling
{
* The table builder.
* @var TableBuilder
protected $builder;
* Create a new SetDefaultOptions instance.
* @param TableBuilder $builder
public function __construct(TableBuilder $builder)
$this->builder = $builder;
}
* @param Store $session
* @param Request $request
public function handle(Store $session, Request $request)
$session->set('table::' . $request->url(), $request->getQueryString());