initiate project

This commit is contained in:
Omair Saleh
2019-01-23 23:53:18 +08:00
commit 771c52883f
356 changed files with 104246 additions and 0 deletions
+39
View File
@@ -0,0 +1,39 @@
<?php
namespace App\Http\Middleware;
use Closure;
use Illuminate\Foundation\Application;
use Illuminate\Support\Facades\Artisan;
/**
* @copyright Copyright (C) 2018 IP ServerOne Solutions Sdn. Bhd. All rights reserved.
* @author Zhe Yang, Lee <zylee@ipserverone.com>
* @license Proprietary
*/
class ClearCache {
/** @var Application */
private $application;
/**
* @param Application $application
*/
public function __construct(Application $application) {
$this->application = $application;
}
/**
* @param $request
* @param Closure $next
*
* @return mixed
*/
public function handle($request, Closure $next) {
// only run view:clear if we're not on production
if ($this->application->environment() !== 'production') {
Artisan::call('view:clear');
}
return $next($request);
}
}