Foydalanilgan adabiyotlar
https://www.geeksforgeeks.org/
https://www.larashout.com/
https://laravel.com/
https://www.w3schools.com/
http://stackoverflow.com/
Foydalanilgan paketlar
Axios
Bootstrap
JQuery
Laravel-mix
Lodash
Popper.js
Chart.js
Controller kodlari
HomeController:
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Gate;
class HomeController extends Controller
{
/**
* Create a new controller instance.
*
* @return void
*/
public function __construct()
{
$this->middleware('auth');
}
/**
* Show the application dashboard.
*
* @return \Illuminate\Contracts\Support\Renderable
*/
public function index()
{
if(Gate::allows('employee-access'))
return redirect()->route('employee.index');
if(Gate::allows('admin-access'))
return redirect()->route('admin.index');
}
}
Do'stlaringiz bilan baham: |