2022-04-26 21:16:46 -07:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Http\Controllers;
|
|
|
|
|
|
|
|
use App\Http\Requests\StoreOwnedRequest;
|
|
|
|
use App\Http\Requests\UpdateOwnedRequest;
|
|
|
|
use App\Models\Owned;
|
|
|
|
|
|
|
|
class OwnedController extends Controller
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Display a listing of the resource.
|
|
|
|
*
|
|
|
|
* @return \Illuminate\Http\Response
|
|
|
|
*/
|
|
|
|
public function index()
|
|
|
|
{
|
2022-04-27 18:57:21 -07:00
|
|
|
return view('admin.owned.index');
|
2022-04-26 21:16:46 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Show the form for creating a new resource.
|
|
|
|
*
|
|
|
|
* @return \Illuminate\Http\Response
|
|
|
|
*/
|
|
|
|
public function create()
|
|
|
|
{
|
2022-04-27 19:33:19 -07:00
|
|
|
return view('admin.owned.create');
|
2022-04-26 21:16:46 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Store a newly created resource in storage.
|
|
|
|
*
|
|
|
|
* @return \Illuminate\Http\Response
|
|
|
|
*/
|
|
|
|
public function store(StoreOwnedRequest $request)
|
|
|
|
{
|
2022-04-28 12:01:17 -07:00
|
|
|
Owned::store($request->validated());
|
|
|
|
|
|
|
|
return redirect()->route('admin.owned.index')->with('success', 'Fanlisting added!');
|
2022-04-26 21:16:46 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2022-04-30 13:36:32 -07:00
|
|
|
* Manage the specified resource.
|
2022-04-26 21:16:46 -07:00
|
|
|
*
|
|
|
|
* @return \Illuminate\Http\Response
|
|
|
|
*/
|
2022-04-30 13:36:32 -07:00
|
|
|
public function manage(Owned $owned)
|
2022-04-26 21:16:46 -07:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Show the form for editing the specified resource.
|
|
|
|
*
|
|
|
|
* @return \Illuminate\Http\Response
|
|
|
|
*/
|
|
|
|
public function edit(Owned $owned)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Update the specified resource in storage.
|
|
|
|
*
|
|
|
|
* @return \Illuminate\Http\Response
|
|
|
|
*/
|
|
|
|
public function update(UpdateOwnedRequest $request, Owned $owned)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Remove the specified resource from storage.
|
|
|
|
*
|
|
|
|
* @return \Illuminate\Http\Response
|
|
|
|
*/
|
|
|
|
public function destroy(Owned $owned)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
}
|