app/User.php
/**
     * Get the activity timeline for the user.
     *
     * @return mixed
     */
Get the activity timeline for the user.
@return mixed
Get the activity timeline for the user . @return mixed
public function activity()
    {
        return $this->hasMany('App\Activity')
            ->with(['user', 'subject'])
            ->latest();
    }
public function activity ( ) { return $ this -> hasMany ( 'App\Activity' ) -> with ( [ 'user' , 'subject' ] ) -> latest ( ) ; }
Get the activity timeline for the user.
Get the activity timeline for the user .