Files
UNIT3D-Community-Edition/app/Http/Controllers/MediaHub/NetworkController.php
HDVinnie 992245bbcc Apply fixes from StyleCI
[ci skip] [skip ci]
2020-10-28 20:42:44 +00:00

45 lines
1023 B
PHP

<?php
/**
* NOTICE OF LICENSE.
*
* UNIT3D is open-sourced software licensed under the GNU General Public License v3.0
* The details is bundled with this project in the file LICENSE.txt.
*
* @project UNIT3D
*
* @license https://www.gnu.org/licenses/agpl-3.0.en.html/ GNU Affero General Public License v3.0
* @author HDVinnie
*/
namespace App\Http\Controllers\MediaHub;
use App\Http\Controllers\Controller;
use App\Models\Network;
class NetworkController extends Controller
{
/**
* Display All Networks.
*
* @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View
*/
public function index()
{
return view('mediahub.network.index');
}
/**
* Show A Network.
*
* @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View
*/
public function show($id)
{
$network = Network::with('tv')->findOrFail($id);
return view('mediahub.network.show', [
'network' => $network,
]);
}
}