mirror of
https://github.com/bs-community/blessing-skin-server.git
synced 2025-01-06 13:34:50 +08:00
34 lines
683 B
PHP
34 lines
683 B
PHP
<?php
|
|
|
|
namespace App\Http\Middleware;
|
|
|
|
use Closure;
|
|
|
|
class SaveOptionRepository
|
|
{
|
|
/**
|
|
* Handle an incoming request.
|
|
*
|
|
* @param \Illuminate\Http\Request $request
|
|
* @param \Closure $next
|
|
* @return mixed
|
|
*/
|
|
public function handle($request, Closure $next)
|
|
{
|
|
return $next($request);
|
|
}
|
|
|
|
/**
|
|
* Do the really operations of saving modified options.
|
|
*
|
|
* @param \Illuminate\Http\Request $request
|
|
* @param \Symfony\Component\HttpFoundation\Response $response
|
|
* @return void
|
|
*/
|
|
public function terminate($request, $response)
|
|
{
|
|
// deprecated
|
|
// app('options')->save();
|
|
}
|
|
}
|