Update source into github

This commit is contained in:
pbao9
2025-07-24 16:18:27 +07:00
parent 41419358dd
commit 69851ac7bc
2642 changed files with 284095 additions and 0 deletions
+56
View File
@@ -0,0 +1,56 @@
<?php
namespace App\Http\Controllers;
use App\Support\Breadcrumb\Breadcrumb;
use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
use Illuminate\Foundation\Bus\DispatchesJobs;
use Illuminate\Foundation\Validation\ValidatesRequests;
use Illuminate\Routing\Controller as BaseController;
class Controller extends BaseController
{
use AuthorizesRequests, DispatchesJobs, ValidatesRequests;
/**
* Mảng chứa đường dẫn tới views
*
* @var array
*/
protected $view;
/**
* Mảng chứa tên route
*
* @var array
*/
protected $route;
protected Breadcrumb $crums;
public function __construct()
{
$this->setView();
$this->setRoute();
$this->crums = new Breadcrumb();
}
public function getView()
{
return $this->view ?? [];
}
public function setView()
{
$this->view = $this->getView();
}
public function getRoute()
{
return $this->route ?? [];
}
public function setRoute()
{
$this->route = $this->getRoute();
}
}