36 lines
715 B
PHP
36 lines
715 B
PHP
|
<?php
|
||
|
|
||
|
namespace App\Http\Controllers;
|
||
|
|
||
|
class AdminController extends Controller
|
||
|
{
|
||
|
/*
|
||
|
|--------------------------------------------------------------------------
|
||
|
| Admin Controller
|
||
|
|--------------------------------------------------------------------------
|
||
|
|
|
||
|
| Here we have the logic for the admin cp
|
||
|
|
|
||
|
*/
|
||
|
|
||
|
/**
|
||
|
* Set variables.
|
||
|
*
|
||
|
* @var string
|
||
|
*/
|
||
|
public function __construct()
|
||
|
{
|
||
|
$this->username = env('ADMIN_USER');
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Show the main admin CP page.
|
||
|
*
|
||
|
* @return \Illuminate\View\Factory view
|
||
|
*/
|
||
|
public function showWelcome()
|
||
|
{
|
||
|
return view('admin.welcome', ['name' => $this->username]);
|
||
|
}
|
||
|
}
|