2018-10-15 07:00:48 +02:00
|
|
|
<?php
|
2019-05-11 05:32:07 +02:00
|
|
|
/**
|
2020-09-06 11:38:10 +02:00
|
|
|
* Invoice Ninja (https://invoiceninja.com).
|
2019-05-11 05:32:07 +02:00
|
|
|
*
|
|
|
|
* @link https://github.com/invoiceninja/invoiceninja source repository
|
|
|
|
*
|
2021-01-03 22:54:54 +01:00
|
|
|
* @copyright Copyright (c) 2021. Invoice Ninja LLC (https://invoiceninja.com)
|
2019-05-11 05:32:07 +02:00
|
|
|
*
|
|
|
|
* @license https://opensource.org/licenses/AAL
|
|
|
|
*/
|
2018-10-15 07:00:48 +02:00
|
|
|
|
|
|
|
namespace App\Http\Controllers;
|
|
|
|
|
2020-10-28 11:10:49 +01:00
|
|
|
use Illuminate\Http\Response;
|
|
|
|
|
2019-03-28 22:34:58 +01:00
|
|
|
class DashboardController extends BaseController
|
2018-10-15 07:00:48 +02:00
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Create a new controller instance.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function __construct()
|
|
|
|
{
|
2018-10-29 04:16:17 +01:00
|
|
|
$this->middleware('auth:user');
|
2018-10-15 07:00:48 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Show the application dashboard.
|
|
|
|
*
|
2020-10-28 11:10:49 +01:00
|
|
|
* @return Response
|
2018-10-15 07:00:48 +02:00
|
|
|
*/
|
|
|
|
public function index()
|
|
|
|
{
|
2019-12-30 22:59:12 +01:00
|
|
|
// dd(json_decode(auth()->user()->permissions(),true));
|
2018-11-27 07:59:16 +01:00
|
|
|
return view('dashboard.index');
|
2018-10-15 07:00:48 +02:00
|
|
|
}
|
|
|
|
}
|