File: D:/HostingSpaces/SBogers10/vebon.komma.pro/app/KommaApp/Core/CoreController.php
<?php
/**
* Short description for the file.
*
* @author Tim Van Samang <timvansamang@komma.pro>
* @copyright (c) 2012-2015, Komma Mediadesign
*/
namespace KommaApp\Core;
use App\Http\Controllers\Controller;
use Illuminate\Database\Eloquent\Model;
class CoreController extends Controller
{
public $modelService;
public function errorPage($type)
{
if (!preg_match('/^(40[0|1|3|4])|(50[0|1|2|3])$/', $type)) $type = 404;
\App::abort($type);
}
}