app/Http/Controllers/FavoritesController.php
/**
     * Store a newly created resource in storage.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Illuminate\Http\Response
     */
Store a newly created resource in storage.
Store a newly created resource in storage .
public function store(Request $request, Reply $reply)
    {
        $reply->favorite();
        $reply->owner->gainReputation('reply_favorited');
    }
public function store ( Request $ request , Reply $ reply ) { $ reply -> favorite ( ) ; $ reply -> owner -> gainReputation ( 'reply_favorited' ) ; }
Store a newly created resource in storage.
Store a newly created resource in storage .
// Reputation::gain($reply->owner, Reputation::REPLY_FAVORITED); // return back(); /* $reply->favorites()->create(['user_id' => auth()->id()]); */ /* Favorite::create([
            'user_id' => auth()->id(),
            'favorited_id' => $reply->id,
            'favorited_type' => get_class($reply)
        ]); */