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
Raw Normal View History

2015-02-12 19:00:23 +00:00
<?php namespace App\Http\Controllers;
2015-02-17 14:56:30 +00:00
use App\User;
2015-02-16 15:27:16 +00:00
2015-02-12 19:00:23 +00:00
class AdminController extends Controller {
2015-02-13 10:41:05 +00:00
2015-02-12 19:00:23 +00:00
/**
* Create a new controller instance.
*
* @return void
*/
public function __construct()
{
2015-02-15 06:12:44 +00:00
//
2015-02-12 19:00:23 +00:00
}
/**
* Show the application dashboard to the user.
*
* @return Response
*/
public function index()
{
2015-02-17 14:56:30 +00:00
$me = User::current();
$user = User::all();
2015-02-16 15:27:16 +00:00
return view('admin', ['nameRoute' => 'Admin', 'users' => $user, 'me' => $me]);
2015-02-12 19:00:23 +00:00
}
2015-02-17 14:56:30 +00:00
/**
* 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');
}
2015-02-12 19:00:23 +00:00
}