mirror of
https://github.com/Bigherollc/wticreatorstudio.git
synced 2026-07-14 18:02:01 -04:00
63 lines
1.5 KiB
PHP
63 lines
1.5 KiB
PHP
<?php
|
|
|
|
namespace Modules\StudioPlus\Http\Controllers;
|
|
|
|
use Illuminate\Http\Request;
|
|
use Illuminate\Routing\Controller;
|
|
use Maatwebsite\Excel\Facades\Excel;
|
|
use Modules\StudioPlus\Exports\UsersExport;
|
|
use Illuminate\Contracts\Support\Renderable;
|
|
use Modules\StudioPlus\Entities\StudioPlusVideo;
|
|
use Modules\StudioPlus\Entities\StudioPlusChannel;
|
|
|
|
class GuestController extends Controller
|
|
{
|
|
|
|
public function index(StudioPlusVideo $studioPlusVideo)
|
|
{
|
|
return view('studioplus::guest');
|
|
}
|
|
|
|
public function shortsList()
|
|
{
|
|
return view('studioplus::shortsList');
|
|
}
|
|
|
|
public function create()
|
|
{
|
|
return view('studioplus::create');
|
|
}
|
|
|
|
public function show(StudioPlusChannel $studioPlusChannel)
|
|
{ {
|
|
return view('studioplus::show', [
|
|
'channel' => $studioPlusChannel
|
|
]);
|
|
}
|
|
}
|
|
|
|
public function edit($id)
|
|
{
|
|
return view('studioplus::edit');
|
|
}
|
|
|
|
public function watch(StudioPlusVideo $video)
|
|
{
|
|
return view('studioplus::guestview', [
|
|
'video' => $video->load('comments', 'channel.user')
|
|
]);
|
|
}
|
|
|
|
public function short(StudioPlusVideo $video)
|
|
{
|
|
return view('studioplus::short', [
|
|
'video' => $video->load('comments', 'channel.user')
|
|
]);
|
|
}
|
|
|
|
public function export()
|
|
{
|
|
return Excel::download(new UsersExport, 'users.xlsx');
|
|
}
|
|
}
|