Skip to content

Commit

Permalink
Update CardsController.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Kantai235 authored May 3, 2024
1 parent 37145a2 commit 81f9d02
Showing 1 changed file with 4 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@

namespace App\Domains\Social\Http\Controllers\Backend\Cards;

use App\Domains\Social\Http\Requests\Backend\Cards\DeleteCardsRequest;
use App\Domains\Social\Http\Requests\Backend\Cards\EditCardsRequest;
use App\Domains\Social\Http\Requests\Backend\Cards\StoreCardsRequest;
use App\Domains\Social\Http\Requests\Backend\Cards\UpdateCardsRequest;
use App\Domains\Social\Jobs\Publish\DiscordPublishJob;
use App\Domains\Social\Jobs\Publish\FacebookPublishJob;
use App\Domains\Social\Jobs\Publish\PlurkPublishJob;
Expand Down Expand Up @@ -60,7 +56,7 @@ public function create()
* @throws \App\Exceptions\GeneralException
* @throws \Throwable
*/
public function store(StoreCardsRequest $request)
public function store($request)
{
$cards = $this->cardsService->store($request->validated());

Expand All @@ -84,7 +80,7 @@ public function show(Cards $cards)
*
* @return mixed
*/
public function edit(EditCardsRequest $request, Cards $cards)
public function edit($request, Cards $cards)
{
return view('backend.social.cards.edit')
->with('cards', $cards);
Expand Down Expand Up @@ -259,7 +255,7 @@ public function notification(Cards $cards)
* @return mixed
* @throws \Throwable
*/
public function update(UpdateCardsRequest $request, Cards $cards)
public function update($request, Cards $cards)
{
$this->cardsService->update($cards, $request->validated());

Expand All @@ -273,7 +269,7 @@ public function update(UpdateCardsRequest $request, Cards $cards)
* @return mixed
* @throws \App\Exceptions\GeneralException
*/
public function destroy(DeleteCardsRequest $request, Cards $cards)
public function destroy($request, Cards $cards)
{
$this->cardsService->delete($cards);

Expand Down

0 comments on commit 81f9d02

Please sign in to comment.