mirror of
https://gitlab.com/TheGamecraft/c-cms.git
synced 2026-04-21 10:49:10 -04:00
workflow change
This commit is contained in:
85
app/Http/Controllers/ComplementaryActivityController.php
Normal file
85
app/Http/Controllers/ComplementaryActivityController.php
Normal file
@@ -0,0 +1,85 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use App\ComplementaryActivity;
|
||||
use Illuminate\Http\Request;
|
||||
|
||||
class ComplementaryActivityController extends Controller
|
||||
{
|
||||
/**
|
||||
* Display a listing of the resource.
|
||||
*
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function index()
|
||||
{
|
||||
return view('public.activity');
|
||||
}
|
||||
|
||||
/**
|
||||
* Show the form for creating a new resource.
|
||||
*
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function create()
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Store a newly created resource in storage.
|
||||
*
|
||||
* @param \Illuminate\Http\Request $request
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function store(Request $request)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Display the specified resource.
|
||||
*
|
||||
* @param \App\ComplementaryActivity $complementaryActivity
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function show(ComplementaryActivity $complementaryActivity)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Show the form for editing the specified resource.
|
||||
*
|
||||
* @param \App\ComplementaryActivity $complementaryActivity
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function edit(ComplementaryActivity $complementaryActivity)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Update the specified resource in storage.
|
||||
*
|
||||
* @param \Illuminate\Http\Request $request
|
||||
* @param \App\ComplementaryActivity $complementaryActivity
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function update(Request $request, ComplementaryActivity $complementaryActivity)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove the specified resource from storage.
|
||||
*
|
||||
* @param \App\ComplementaryActivity $complementaryActivity
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function destroy(ComplementaryActivity $complementaryActivity)
|
||||
{
|
||||
//
|
||||
}
|
||||
}
|
||||
@@ -325,4 +325,24 @@ class ECCController extends Controller
|
||||
{
|
||||
return view('ecc.files');
|
||||
}
|
||||
|
||||
public function settings()
|
||||
{
|
||||
return view('ecc.settings');
|
||||
}
|
||||
|
||||
public function UserPassword()
|
||||
{
|
||||
return view('ecc.settings.password');
|
||||
}
|
||||
|
||||
public function UserAvatar()
|
||||
{
|
||||
return view('ecc.settings.avatar');
|
||||
}
|
||||
|
||||
public function UserAdress()
|
||||
{
|
||||
return view('ecc.settings.adress');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -81,4 +81,9 @@ class FilesController extends Controller
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
public function guide()
|
||||
{
|
||||
return view('admin.files.guide');
|
||||
}
|
||||
}
|
||||
|
||||
85
app/Http/Controllers/NewsController.php
Normal file
85
app/Http/Controllers/NewsController.php
Normal file
@@ -0,0 +1,85 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use App\News;
|
||||
use Illuminate\Http\Request;
|
||||
|
||||
class NewsController extends Controller
|
||||
{
|
||||
/**
|
||||
* Display a listing of the resource.
|
||||
*
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function index()
|
||||
{
|
||||
return view('public.allnews',['news' => \App\News::all()]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Show the form for creating a new resource.
|
||||
*
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function create()
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Store a newly created resource in storage.
|
||||
*
|
||||
* @param \Illuminate\Http\Request $request
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function store(Request $request)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Display the specified resource.
|
||||
*
|
||||
* @param \App\News $news
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function show($id)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Show the form for editing the specified resource.
|
||||
*
|
||||
* @param \App\News $news
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function edit(News $news)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Update the specified resource in storage.
|
||||
*
|
||||
* @param \Illuminate\Http\Request $request
|
||||
* @param \App\News $news
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function update(Request $request, News $news)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove the specified resource from storage.
|
||||
*
|
||||
* @param \App\News $news
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function destroy(News $news)
|
||||
{
|
||||
//
|
||||
}
|
||||
}
|
||||
85
app/Http/Controllers/PictureController.php
Normal file
85
app/Http/Controllers/PictureController.php
Normal file
@@ -0,0 +1,85 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use App\Picture;
|
||||
use Illuminate\Http\Request;
|
||||
|
||||
class PictureController extends Controller
|
||||
{
|
||||
/**
|
||||
* Display a listing of the resource.
|
||||
*
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function index()
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Show the form for creating a new resource.
|
||||
*
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function create()
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Store a newly created resource in storage.
|
||||
*
|
||||
* @param \Illuminate\Http\Request $request
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function store(Request $request)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Display the specified resource.
|
||||
*
|
||||
* @param \App\Picture $picture
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function show(Picture $picture)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Show the form for editing the specified resource.
|
||||
*
|
||||
* @param \App\Picture $picture
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function edit(Picture $picture)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Update the specified resource in storage.
|
||||
*
|
||||
* @param \Illuminate\Http\Request $request
|
||||
* @param \App\Picture $picture
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function update(Request $request, Picture $picture)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove the specified resource from storage.
|
||||
*
|
||||
* @param \App\Picture $picture
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function destroy(Picture $picture)
|
||||
{
|
||||
//
|
||||
}
|
||||
}
|
||||
90
app/Http/Controllers/PublicController.php
Normal file
90
app/Http/Controllers/PublicController.php
Normal file
@@ -0,0 +1,90 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use Illuminate\Http\Request;
|
||||
|
||||
class PublicController extends Controller
|
||||
{
|
||||
/**
|
||||
* Display a listing of the resource.
|
||||
*
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function index()
|
||||
{
|
||||
return view('public.index',['news' => \App\News::all()]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Show the form for creating a new resource.
|
||||
*
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function create()
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Store a newly created resource in storage.
|
||||
*
|
||||
* @param \Illuminate\Http\Request $request
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function store(Request $request)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Display the specified resource.
|
||||
*
|
||||
* @param int $id
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function show($id)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Show the form for editing the specified resource.
|
||||
*
|
||||
* @param int $id
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function edit($config)
|
||||
{
|
||||
return view('admin.public.edit',['config' => \App\Config::where('name',$config)->first()]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Update the specified resource in storage.
|
||||
*
|
||||
* @param \Illuminate\Http\Request $request
|
||||
* @param int $id
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function update(Request $request, $config)
|
||||
{
|
||||
$config = \App\Config::where('name',$config)->first();
|
||||
|
||||
$config->data = [request('data')];
|
||||
|
||||
$config->save();
|
||||
|
||||
return redirect('/');;
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove the specified resource from storage.
|
||||
*
|
||||
* @param int $id
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function destroy($id)
|
||||
{
|
||||
//
|
||||
}
|
||||
}
|
||||
@@ -208,11 +208,43 @@ class UserController extends Controller
|
||||
|
||||
$user->save();
|
||||
|
||||
return redirect('/admin/profil/avatar')->with('status', 'Modification enregistré');
|
||||
return back()->with('status', 'Votre avatar a été mis à jour !');
|
||||
}
|
||||
|
||||
public function UserAvatar()
|
||||
{
|
||||
return view('admin.user.profil.avatar');
|
||||
}
|
||||
|
||||
public function UserPassword()
|
||||
{
|
||||
return view('admin.user.profil.password');
|
||||
}
|
||||
|
||||
public function editUserPassword()
|
||||
{
|
||||
$user = \Auth::User();
|
||||
|
||||
$user->password = bcrypt(request('psw'));
|
||||
|
||||
$user->save();
|
||||
|
||||
return back()->with('status', 'Modification enregistré');
|
||||
}
|
||||
|
||||
public function UserAdress()
|
||||
{
|
||||
return view('admin.user.profil.adress');
|
||||
}
|
||||
|
||||
public function editUserAdress()
|
||||
{
|
||||
$user = \Auth::user();
|
||||
|
||||
$user->adress = request('adress');
|
||||
|
||||
$user->save();
|
||||
|
||||
return back()->with('status', 'Modification enregistré');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user