middleware('allowed'); } /** * Display a listing of the resource. */ public function index(): Collection { $columns = [ 'title', 'colour', 'url', 'description', 'appid', 'appdescription', ]; return Item::select($columns) ->where('deleted_at', null) ->where('type', '0') ->orderBy('order', 'asc') ->get(); } /** * Show the form for creating a new resource. * * @return void */ public function create() { } /** * Store a newly created resource in storage. */ public function store(Request $request): object { $item = ItemController::storelogic($request); if ($item) { return (object) ['status' => 'OK']; } return (object) ['status' => 'FAILED']; } /** * Display the specified resource. */ public function show(Item $item): Response { // } /** * Show the form for editing the specified resource. */ public function edit(Item $item): Response { // } /** * Update the specified resource in storage. */ public function update(Request $request, Item $item): Response { // } /** * Remove the specified resource from storage. */ public function destroy(Item $item): Response { // } }