This repository has been archived on 2021-09-15. You can view files and clone it, but cannot push or open issues or pull requests.
ModuleWeb/SRC/app/Http/Controllers/AdminController.php

45 lines
700 B
PHP
Executable File

<?php namespace App\Http\Controllers;
use App\User;
class AdminController extends Controller {
/**
* Create a new controller instance.
*
* @return void
*/
public function __construct()
{
//
}
/**
* Show the application dashboard to the user.
*
* @return Response
*/
public function index()
{
$me = User::current();
$user = User::all();
return view('admin', ['nameRoute' => 'Admin', 'users' => $user, 'me' => $me]);
}
/**
* Add an user in database.
*
*
*/
public function addUser()
{
$firstname = Request::input('firstname');
$lastname = Input::get('lastname');
$email = Input::get('email');
$city = Input::get('city');
//print('ok');
}
}