46 lines
817 B
PHP
46 lines
817 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers;
|
|
|
|
use Illuminate\Http\Request;
|
|
use App\Library;
|
|
use Illuminate\Support\Facades\Auth;
|
|
use Illuminate\Support\Facades\DB;
|
|
|
|
class DashboardController extends Controller
|
|
{
|
|
/**
|
|
* Create a new controller instance.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function __construct()
|
|
{
|
|
$this->middleware('auth');
|
|
}
|
|
|
|
/**
|
|
* Show the application dashboard.
|
|
*
|
|
* @return \Illuminate\Http\Response
|
|
*/
|
|
public function index()
|
|
{
|
|
return view('dashboard');
|
|
}
|
|
|
|
public function addMoon() {
|
|
return view('dashboard.addmoon');
|
|
}
|
|
|
|
public function profile() {
|
|
//
|
|
}
|
|
|
|
public function displayMoons() {
|
|
$moons = DB::table('moons')->get();
|
|
|
|
return 'Moons Display Table';
|
|
}
|
|
}
|